/* ===== Funiu Tech — Global Styles ===== */
:root {
  --navy-900: #06152e;
  --navy-800: #0b2545;
  --navy-700: #112e57;
  --navy-600: #1b3c6e;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --cyan-400: #38bdf8;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--navy-900); }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--slate-200);
  background: var(--navy-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 21, 46, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--white); }
.brand .logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--white); font-size: 18px;
}
.brand-name { font-size: 17px; letter-spacing: 0.2px; }
.brand-sub { display: block; font-size: 11px; font-weight: 500; color: var(--slate-400); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--slate-300); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 26px; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--navy-800);
    border-bottom: 1px solid rgba(255,255,255,.08);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; border-top: 1px solid rgba(255,255,255,.05); }
  .nav-links a { display: block; padding: 16px 24px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; border: 0;
}
.btn-primary { background: var(--blue-500); color: var(--white); box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.btn-primary:hover { background: var(--blue-400); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: var(--cyan-400); color: var(--cyan-400); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(6,21,46,.82), rgba(6,21,46,.95)),
    url("/images/hero.png") center/cover no-repeat;
  padding: 110px 0 120px;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--cyan-400);
  border: 1px solid rgba(56,189,248,.4); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px); line-height: 1.12; color: var(--white);
  font-weight: 800; letter-spacing: -0.5px; max-width: 760px;
}
.hero p.lead { margin-top: 22px; font-size: 18px; color: var(--slate-300); max-width: 600px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); color: var(--white); font-weight: 800; letter-spacing: -0.3px; }
.section-head p { margin-top: 16px; color: var(--slate-400); font-size: 17px; }
.alt-bg { background: var(--navy-800); }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; background: var(--navy-700); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.06); }
.stat .num { font-size: 32px; font-weight: 800; color: var(--cyan-400); }
.stat .label { margin-top: 6px; font-size: 14px; color: var(--slate-400); }

/* ===== Product cards ===== */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: var(--navy-700); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(56,189,248,.5); box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.product-img { background: var(--navy-900); padding: 22px; display: flex; justify-content: center; }
.product-img img { border-radius: 12px; max-height: 320px; width: auto; }
.product-body { padding: 24px 26px 30px; }
.product-body h3 { color: var(--white); font-size: 21px; font-weight: 700; }
.product-tag { display: inline-block; margin: 10px 0 14px; font-size: 12px; font-weight: 600; color: var(--cyan-400); background: rgba(56,189,248,.1); padding: 4px 12px; border-radius: 999px; }
.product-body p { color: var(--slate-400); font-size: 15px; }
.feature-list { margin-top: 16px; list-style: none; }
.feature-list li { position: relative; padding-left: 24px; margin-bottom: 8px; font-size: 14px; color: var(--slate-300); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan-400); font-weight: 700; }

/* ===== Feature / value grid ===== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { background: var(--navy-700); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 30px 26px; }
.value-card .ico { width: 48px; height: 48px; border-radius: 12px; background: rgba(37,99,235,.15); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.value-card .ico svg { width: 24px; height: 24px; stroke: var(--cyan-400); }
.value-card h3 { color: var(--white); font-size: 18px; margin-bottom: 10px; }
.value-card p { color: var(--slate-400); font-size: 15px; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); border-radius: 20px; padding: 56px 40px; text-align: center; border: 1px solid rgba(255,255,255,.08); }
.cta-band h2 { color: var(--white); font-size: clamp(24px,3vw,32px); font-weight: 800; }
.cta-band p { color: var(--slate-300); margin: 14px auto 28px; max-width: 540px; }

/* ===== Generic page content ===== */
.page-hero { background: var(--navy-800); padding: 70px 0 56px; border-bottom: 1px solid rgba(255,255,255,.06); }
.page-hero h1 { color: var(--white); font-size: clamp(30px,4vw,44px); font-weight: 800; }
.page-hero p { color: var(--slate-400); margin-top: 14px; font-size: 17px; max-width: 640px; }

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { color: var(--white); font-size: 24px; margin: 40px 0 14px; font-weight: 700; }
.prose h3 { color: var(--white); font-size: 18px; margin: 26px 0 10px; font-weight: 600; }
.prose p { color: var(--slate-300); margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 22px; color: var(--slate-300); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--cyan-400); }
.prose .muted { color: var(--slate-500); font-size: 14px; }

/* ===== About layout ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { color: var(--white); font-size: 30px; font-weight: 800; margin-bottom: 18px; }
.split p { color: var(--slate-300); margin-bottom: 16px; }
.split .panel { background: var(--navy-700); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 34px; }
.split .panel ul { list-style: none; }
.split .panel li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; gap: 16px; }
.split .panel li:last-child { border-bottom: 0; }
.split .panel .k { color: var(--slate-400); }
.split .panel .v { color: var(--white); font-weight: 600; text-align: right; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: var(--navy-700); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 32px; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ico { width: 44px; height: 44px; flex: none; border-radius: 11px; background: rgba(37,99,235,.15); display: flex; align-items: center; justify-content: center; }
.contact-item .ico svg { width: 22px; height: 22px; stroke: var(--cyan-400); }
.contact-item .label { font-size: 13px; color: var(--slate-400); text-transform: uppercase; letter-spacing: .5px; }
.contact-item .data { color: var(--white); font-size: 16px; font-weight: 600; word-break: break-word; }
.contact-item .data a { color: var(--cyan-400); }

.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; color: var(--slate-300); margin-bottom: 8px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; font-size: 15px;
  background: var(--navy-900); border: 1px solid rgba(255,255,255,.12); color: var(--white);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue-400); }
.form-note { font-size: 13px; color: var(--slate-500); margin-top: 14px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.07); padding: 56px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-grid p, .footer-grid li { color: var(--slate-400); font-size: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--cyan-400); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--slate-500); font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .products, .value-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .products, .value-grid, .stats, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
