/* ============================================================
   Mostek Website — Styles
   Edit colors, fonts and spacing in the :root block below.
   Section styles are grouped with header comments.
   ============================================================ */

:root {
    --teal-50:#E6F2F2; --teal-100:#C5E2E2; --teal-200:#97CACB; --teal-300:#63ADAE;
    --teal-400:#2E8E90; --teal-500:#0F7A7C; --teal-600:#0B6264; --teal-700:#094E50;
    --teal-800:#073B3C; --teal-900:#052828;
    --red-50:#FCEAEA; --red-500:#CC1718; --red-600:#A81213;
    --white:#FFFFFF; --gray-25:#F8FAFA; --gray-50:#F1F4F4; --gray-100:#E4E9E9;
    --gray-200:#CCD4D4; --gray-300:#AAB6B6; --gray-400:#7E8C8C; --gray-500:#5C6A6A;
    --gray-600:#455151; --gray-700:#313B3B; --gray-800:#1E2626; --gray-900:#0E1414;
    --green-500:#1F9D6B; --amber-500:#E0A013;
    --font-display:'Space Grotesk', system-ui, sans-serif;
    --font-sans:'IBM Plex Sans', system-ui, sans-serif;
    --font-mono:'IBM Plex Mono', ui-monospace, monospace;
    --shadow-sm:0 1px 3px rgba(14,20,20,.08),0 1px 2px rgba(14,20,20,.04);
    --shadow-md:0 4px 12px rgba(14,20,20,.08),0 2px 4px rgba(14,20,20,.04);
    --shadow-lg:0 12px 28px rgba(14,20,20,.12),0 4px 8px rgba(14,20,20,.05);
    --shadow-brand:0 16px 40px rgba(15,122,124,.22);
    --ease-out:cubic-bezier(0.16,1,0.3,1);
    --container:1180px;
  }

  *,*::before,*::after { box-sizing:border-box; }
  html { scroll-behavior:smooth; }
  body {
    margin:0; font-family:var(--font-sans); color:var(--gray-700);
    background:var(--white); font-size:16px; line-height:1.6;
    -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  }
  h1,h2,h3,h4 { font-family:var(--font-display); color:var(--gray-900); margin:0; line-height:1.1; letter-spacing:-0.02em; }
  p { margin:0; }
  a { color:inherit; text-decoration:none; }
  img { max-width:100%; display:block; }
  ::selection { background:var(--teal-100); color:var(--teal-900); }

  .container { max-width:var(--container); margin:0 auto; padding:0 28px; }
  .eyebrow {
    font-family:var(--font-mono); font-size:12px; font-weight:500;
    letter-spacing:0.14em; text-transform:uppercase; color:var(--teal-600);
    display:inline-flex; align-items:center; gap:9px; white-space:nowrap;
  }
  .eyebrow::before { content:""; width:22px; height:2px; background:var(--teal-500); display:inline-block; }

  /* ---------- Buttons ---------- */
  .btn {
    display:inline-flex; align-items:center; gap:9px; font-family:var(--font-sans);
    font-weight:600; font-size:15px; padding:13px 22px; border-radius:8px;
    border:1.5px solid transparent; cursor:pointer; transition:all .18s var(--ease-out);
    white-space:nowrap; line-height:1;
  }
  .btn-primary { background:var(--teal-500); color:#fff; box-shadow:var(--shadow-sm); }
  .btn-primary:hover { background:var(--teal-600); box-shadow:var(--shadow-brand); transform:translateY(-1px); }
  .btn-primary:active { transform:translateY(0); background:var(--teal-700); }
  .btn-outline { background:#fff; color:var(--gray-900); border-color:var(--gray-200); }
  .btn-outline:hover { border-color:var(--teal-400); color:var(--teal-600); background:var(--teal-50); }
  .btn-ghost { background:transparent; color:var(--gray-700); padding:10px 14px; }
  .btn-ghost:hover { color:var(--teal-600); }
  .btn-lg { padding:16px 28px; font-size:16px; }
  .btn .lucide { width:17px; height:17px; }

  /* ---------- Header ---------- */
  header.site {
    position:sticky; top:0; z-index:50; background:rgba(255,255,255,.82);
    backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid var(--gray-100);
  }
  .nav { display:flex; align-items:center; justify-content:space-between; height:74px; }
  .brand { display:flex; align-items:center; gap:11px; }
  .brand img { height:34px; width:auto; }
  .nav-links { display:flex; align-items:center; gap:34px; }
  .nav-links a {
    font-size:14.5px; font-weight:500; color:var(--gray-600); transition:color .15s;
    position:relative; white-space:nowrap;
  }
  .nav-links a:hover { color:var(--teal-600); }
  .nav-cta { display:flex; align-items:center; gap:10px; }
  .menu-toggle { display:none; background:none; border:none; cursor:pointer; color:var(--gray-800); padding:6px; }
  .menu-toggle .lucide { width:24px; height:24px; }

  /* ---------- Hero ---------- */
  .hero { position:relative; overflow:hidden; padding:88px 0 96px; background:
      radial-gradient(1100px 520px at 78% -8%, var(--teal-50) 0%, rgba(230,242,242,0) 60%),
      linear-gradient(180deg, #fff 0%, var(--gray-25) 100%); }
  .hero-grid { display:grid; grid-template-columns:1.05fr 0.95fr; gap:64px; align-items:center; }
  .hero h1 { font-size:clamp(38px, 4.6vw, 58px); margin:20px 0 22px; }
  .hero h1 .accent { color:var(--teal-600); }
  .hero .lead { font-size:19px; color:var(--gray-600); max-width:540px; line-height:1.55; }
  .hero-actions { display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }
  .hero-meta { display:flex; gap:30px; margin-top:38px; flex-wrap:wrap; }
  .hero-meta .item { display:flex; align-items:center; gap:10px; font-size:14px; color:var(--gray-600); }
  .hero-meta .item .lucide { width:18px; height:18px; color:var(--teal-500); }

  /* hero console panel */
  .panel {
    background:#fff; border:1px solid var(--gray-200); border-radius:16px;
    box-shadow:var(--shadow-lg); overflow:hidden;
  }
  .panel-top {
    display:flex; align-items:center; gap:8px; padding:13px 18px;
    border-bottom:1px solid var(--gray-100); background:var(--gray-25);
  }
  .panel-top .dot { width:10px; height:10px; border-radius:50%; }
  .panel-top .label { font-family:var(--font-mono); font-size:12px; color:var(--gray-500); margin-left:8px; }
  .panel-body { padding:22px; }
  .pulse-wrap { background:var(--teal-900); border-radius:10px; padding:16px 18px 8px; position:relative; overflow:hidden; }
  .pulse-wrap .pl-label { font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--teal-200); display:flex; justify-content:space-between; }
  .pulse-wrap .pl-label .live { color:#fff; display:inline-flex; align-items:center; gap:6px; }
  .pulse-wrap .pl-label .live::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--green-500); box-shadow:0 0 0 0 rgba(31,157,107,.6); animation:blip 1.8s infinite; }
  @keyframes blip { 0%{box-shadow:0 0 0 0 rgba(31,157,107,.6);} 70%{box-shadow:0 0 0 7px rgba(31,157,107,0);} 100%{box-shadow:0 0 0 0 rgba(31,157,107,0);} }
  .pulse-svg { width:100%; height:64px; display:block; margin-top:6px; }
  .pulse-svg path { stroke:var(--teal-300); stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1400; stroke-dashoffset:1400; animation:draw 3.2s var(--ease-out) forwards; }
  @keyframes draw { to { stroke-dashoffset:0; } }
  .stack-list { margin-top:18px; display:flex; flex-direction:column; gap:2px; }
  .stack-row { display:flex; align-items:center; gap:13px; padding:12px 4px; border-bottom:1px dashed var(--gray-100); }
  .stack-row:last-child { border-bottom:none; }
  .stack-row .ico { width:34px; height:34px; border-radius:8px; background:var(--teal-50); color:var(--teal-600); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .stack-row .ico .lucide { width:18px; height:18px; }
  .stack-row .txt { flex:1; }
  .stack-row .txt b { font-family:var(--font-display); font-size:14.5px; color:var(--gray-900); display:block; }
  .stack-row .txt span { font-size:12.5px; color:var(--gray-500); }
  .stack-row .tag { font-family:var(--font-mono); font-size:11px; color:var(--teal-600); background:var(--teal-50); padding:4px 8px; border-radius:5px; }

  /* ---------- Trust strip ---------- */
  .strip { border-top:1px solid var(--gray-100); border-bottom:1px solid var(--gray-100); background:#fff; }
  .strip-grid { display:grid; grid-template-columns:repeat(4,1fr); }
  .strip-item { padding:28px 24px; text-align:center; border-right:1px solid var(--gray-100); }
  .strip-item:last-child { border-right:none; }
  .strip-item .num { font-family:var(--font-display); font-size:32px; font-weight:700; color:var(--teal-600); letter-spacing:-0.02em; }
  .strip-item .cap { font-size:13px; color:var(--gray-500); margin-top:4px; }

  /* ---------- Sections ---------- */
  section.block { padding:96px 0; }
  .section-head { max-width:680px; margin-bottom:54px; }
  .section-head h2 { font-size:clamp(30px,3.4vw,42px); margin:16px 0 16px; }
  .section-head p { font-size:18px; color:var(--gray-600); }
  .center { text-align:center; margin-left:auto; margin-right:auto; }
  .center .eyebrow { justify-content:center; }

  /* capabilities */
  .cap-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
  .cap-card { background:#fff; border:1px solid var(--gray-200); border-radius:12px; padding:26px 22px; transition:all .2s var(--ease-out); position:relative; }
  .cap-card:hover { border-color:var(--teal-300); box-shadow:var(--shadow-md); transform:translateY(-3px); }
  .cap-card .ic { width:46px; height:46px; border-radius:10px; background:var(--teal-500); color:#fff; display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
  .cap-card .ic .lucide { width:23px; height:23px; }
  .cap-card .step { font-family:var(--font-mono); font-size:11px; color:var(--gray-400); letter-spacing:.1em; }
  .cap-card h3 { font-size:18px; margin:6px 0 9px; }
  .cap-card p { font-size:14px; color:var(--gray-500); line-height:1.55; }
  .cap-flow { display:flex; align-items:center; gap:8px; margin-bottom:30px; font-family:var(--font-mono); font-size:12px; color:var(--gray-400); flex-wrap:wrap; }
  .cap-flow .seg { color:var(--teal-600); }

  /* products */
  .products { background:var(--gray-25); }
  .prod-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
  .prod-card { background:#fff; border:1px solid var(--gray-200); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; transition:all .2s var(--ease-out); }
  .prod-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-4px); border-color:var(--teal-200); }
  .mock { height:172px; padding:18px; position:relative; overflow:hidden; border-bottom:1px solid var(--gray-100); }
  .prod-body { padding:24px 24px 26px; display:flex; flex-direction:column; flex:1; }
  .prod-cat { font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--teal-600); }
  .prod-card h3 { font-size:23px; margin:8px 0 6px; display:flex; align-items:center; gap:9px; }
  .prod-card .since { font-family:var(--font-mono); font-size:10.5px; color:#fff; background:var(--teal-600); padding:3px 8px; border-radius:99px; letter-spacing:.05em; }
  .prod-card .tag-line { font-size:15px; color:var(--gray-600); line-height:1.5; }
  .prod-feats { list-style:none; padding:0; margin:18px 0 22px; display:flex; flex-direction:column; gap:10px; }
  .prod-feats li { display:flex; align-items:flex-start; gap:10px; font-size:14px; color:var(--gray-600); }
  .prod-feats .lucide { width:17px; height:17px; color:var(--teal-500); flex-shrink:0; margin-top:1px; }
  .prod-link { margin-top:auto; display:inline-flex; align-items:center; gap:7px; font-weight:600; font-size:14.5px; color:var(--teal-600); }
  .prod-link .lucide { width:16px; height:16px; transition:transform .18s; }
  .prod-card:hover .prod-link .lucide { transform:translateX(4px); }

  /* mock contents */
  .m-tile { background:#fff; border:1px solid var(--gray-200); border-radius:8px; }
  .menuroid-mock { background:linear-gradient(135deg,var(--teal-50),#fff); }
  .mm-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
  .mm-grid .m-tile { height:42px; display:flex; flex-direction:column; justify-content:center; padding:0 9px; }
  .mm-grid .m-tile .b1 { height:6px; width:70%; background:var(--gray-200); border-radius:3px; }
  .mm-grid .m-tile .b2 { height:6px; width:40%; background:var(--teal-300); border-radius:3px; margin-top:5px; }
  .mm-bar { margin-top:11px; height:30px; background:var(--teal-500); border-radius:8px; display:flex; align-items:center; justify-content:space-between; padding:0 13px; color:#fff; font-family:var(--font-mono); font-size:12px; }
  .safestock-mock { background:linear-gradient(135deg,var(--gray-50),#fff); }
  .ss-row { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--gray-100); border-radius:7px; padding:8px 11px; margin-bottom:8px; }
  .ss-row .sq { width:20px; height:20px; border-radius:5px; background:var(--teal-100); flex-shrink:0; }
  .ss-row .ln { height:6px; border-radius:3px; background:var(--gray-200); }
  .ss-row .meter { margin-left:auto; width:54px; height:7px; background:var(--gray-100); border-radius:99px; overflow:hidden; flex-shrink:0; }
  .ss-row .meter i { display:block; height:100%; background:var(--teal-500); }
  .ss-row.low .meter i { background:var(--red-500); }
  .ss-row.low .sq { background:var(--red-50); }
  .moster-mock { background:linear-gradient(135deg,var(--teal-900),var(--teal-700)); }
  .me-kpis { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; }
  .me-kpis .k { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); border-radius:8px; padding:9px 11px; }
  .me-kpis .k .kn { font-family:var(--font-display); font-weight:700; color:#fff; font-size:18px; }
  .me-kpis .k .kl { font-size:10px; color:var(--teal-200); font-family:var(--font-mono); }
  .me-chart { margin-top:10px; display:flex; align-items:flex-end; gap:6px; height:42px; }
  .me-chart i { flex:1; background:var(--teal-300); border-radius:3px 3px 0 0; }

  /* why */
  .why-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
  .why-card { display:flex; gap:18px; padding:28px; border:1px solid var(--gray-200); border-radius:14px; background:#fff; }
  .why-card .wic { width:48px; height:48px; border-radius:11px; background:var(--teal-50); color:var(--teal-600); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .why-card .wic .lucide { width:24px; height:24px; }
  .why-card h3 { font-size:18px; margin-bottom:8px; }
  .why-card p { font-size:14.5px; color:var(--gray-500); line-height:1.55; }

  /* stats band */
  .band { background:var(--teal-900); color:#fff; position:relative; overflow:hidden; }
  .band::before { content:""; position:absolute; inset:0; background:radial-gradient(700px 400px at 85% 120%, rgba(15,122,124,.55), transparent 60%); }
  .band .container { position:relative; }
  .band-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
  .band-item .bn { font-family:var(--font-display); font-size:48px; font-weight:700; letter-spacing:-0.03em; }
  .band-item .bn .u { color:var(--teal-300); }
  .band-item .bl { font-size:14px; color:var(--teal-100); margin-top:6px; }

  /* contact */
  .contact-grid { display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; align-items:start; }
  .contact-info h2 { font-size:clamp(28px,3vw,38px); margin:16px 0 18px; }
  .contact-info p.sub { font-size:17px; color:var(--gray-600); margin-bottom:30px; }
  .ci-list { display:flex; flex-direction:column; gap:18px; }
  .ci-item { display:flex; align-items:center; gap:14px; }
  .ci-item .cic { width:42px; height:42px; border-radius:10px; background:var(--teal-50); color:var(--teal-600); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .ci-item .cic .lucide { width:20px; height:20px; }
  .ci-item .ct b { display:block; font-family:var(--font-display); font-size:15px; color:var(--gray-900); }
  .ci-item .ct span { font-size:14px; color:var(--gray-500); }
  form.contact { background:#fff; border:1px solid var(--gray-200); border-radius:16px; padding:32px; box-shadow:var(--shadow-md); }
  .field { margin-bottom:18px; }
  .field label { display:block; font-size:13px; font-weight:600; color:var(--gray-700); margin-bottom:7px; }
  .field input, .field textarea, .field select {
    width:100%; font-family:var(--font-sans); font-size:15px; color:var(--gray-900);
    padding:12px 14px; border:1.5px solid var(--gray-200); border-radius:8px; background:#fff;
    transition:border-color .15s, box-shadow .15s;
  }
  .field textarea { resize:vertical; min-height:110px; }
  .field input:focus, .field textarea:focus, .field select:focus {
    outline:none; border-color:var(--teal-400); box-shadow:0 0 0 3px rgba(46,142,144,.18);
  }
  .field-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .form-note { font-size:12.5px; color:var(--gray-400); margin-top:6px; }
  .form-ok { display:none; background:var(--teal-50); border:1px solid var(--teal-200); color:var(--teal-700); padding:14px 16px; border-radius:10px; font-size:14px; align-items:center; gap:10px; }
  .form-ok.show { display:flex; }

  /* footer */
  footer.site { background:var(--gray-900); color:var(--gray-300); padding:64px 0 28px; }
  .foot-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.08); }
  .foot-brand img { height:34px; margin-bottom:18px; filter:brightness(0) invert(1); opacity:.92; }
  .foot-brand p { font-size:14px; color:var(--gray-400); max-width:300px; line-height:1.6; }
  .foot-col h4 { font-family:var(--font-display); font-size:14px; color:#fff; margin-bottom:16px; }
  .foot-col a { display:block; font-size:14px; color:var(--gray-400); margin-bottom:11px; transition:color .15s; }
  .foot-col a:hover { color:var(--teal-300); }
  .foot-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:24px; font-size:13px; color:var(--gray-500); flex-wrap:wrap; gap:12px; }
  .foot-bottom .socials { display:flex; gap:14px; }
  .foot-bottom .socials a { color:var(--gray-500); }
  .foot-bottom .socials a:hover { color:var(--teal-300); }
  .foot-bottom .socials .lucide { width:18px; height:18px; }

  /* reveal anim */
  .reveal { opacity:0; transform:translateY(22px); transition:opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .reveal.in { opacity:1; transform:none; }
  @media (prefers-reduced-motion:reduce) { .reveal { opacity:1; transform:none; transition:none; } .pulse-svg path { animation:none; stroke-dashoffset:0; } }

  /* ---------- Responsive ---------- */
  @media (max-width:980px) {
    .hero-grid { grid-template-columns:1fr; gap:48px; }
    .hero { padding:64px 0 72px; }
    .cap-grid { grid-template-columns:repeat(2,1fr); }
    .prod-grid { grid-template-columns:1fr; max-width:460px; margin:0 auto; }
    .contact-grid { grid-template-columns:1fr; gap:40px; }
    .foot-grid { grid-template-columns:1fr 1fr; gap:32px; }
    .band-grid { grid-template-columns:repeat(2,1fr); gap:34px; }
  }
  @media (max-width:680px) {
    .nav-links, .nav-cta .btn-outline { display:none; }
    .menu-toggle { display:block; }
    .nav-links.open { display:flex; position:absolute; top:74px; left:0; right:0; background:#fff; flex-direction:column; align-items:flex-start; gap:0; padding:8px 0; border-bottom:1px solid var(--gray-100); box-shadow:var(--shadow-md); }
    .nav-links.open a { padding:14px 28px; width:100%; }
    .strip-grid { grid-template-columns:repeat(2,1fr); }
    .strip-item:nth-child(2) { border-right:none; }
    .strip-item:nth-child(1),.strip-item:nth-child(2) { border-bottom:1px solid var(--gray-100); }
    .why-grid { grid-template-columns:1fr; }
    .cap-grid { grid-template-columns:1fr; }
    .band-grid { grid-template-columns:1fr 1fr; }
    .field-row { grid-template-columns:1fr; }
    section.block { padding:64px 0; }
    .container { padding:0 20px; }
  }
