/*
Theme Name: Amantia Engineering
Theme URI: https://amantiaengineering.com
Author: Amantia Engineering
Description: A single-page, 3D-animated landing theme for Amantia Engineering, presenting A.E.G.I.S. and A.E.R.O. search-and-rescue drone systems. Built with three.js wireframe renders and an Apple-style dark/light section rhythm.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
License: Unlicensed — custom, all rights reserved
Text Domain: amantia-engineering
*/

  :root{
    --black:#000000;
    --near-black:#0A0A0C;
    --panel:#111114;
    --line-dark:#2A2A2E;
    --white:#FFFFFF;
    --off-white:#F5F5F7;
    --panel-light:#EBEBED;
    --line-light:#D6D6D9;
    --ink:#1D1D1F;
    --ink-dim-light:#6E6E73;
    --ink-dim-dark:#A1A1A6;
    --orange:#FF5A1F;
    --orange-dim:#D14A18;
    --cyan:#3DD6F5;
    --focus:#3DD6F5;
    font-size:16px;
  }
  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; scroll-padding-top:70px; }
  @media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
  body{
    margin:0;
    background:var(--black);
    color:var(--white);
    font-family:'Inter', system-ui, sans-serif;
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
    padding-top:env(safe-area-inset-top,0px);
    padding-bottom:env(safe-area-inset-bottom,0px);
  }
  img,canvas{ max-width:100%; }
  a{ color:inherit; }
  ::selection{ background:var(--orange); color:#000; }
  :focus-visible{ outline:2px solid var(--focus); outline-offset:3px; }

  .wrap{ max-width:1240px; margin:0 auto; padding:0 32px; }
  @media (max-width:640px){ .wrap{ padding:0 22px; } }

  h1,h2,h3{ font-family:'Manrope',sans-serif; margin:0; }
  .display{ font-weight:300; letter-spacing:-0.02em; }
  .display b{ font-weight:800; }

  section{ position:relative; }
  .on-dark{ background:var(--black); color:var(--white); }
  .on-light{ background:var(--off-white); color:var(--ink); }

  /* ---------------- Nav ---------------- */
  header{
    position:fixed; top:0; left:0; right:0; z-index:100;
    padding-top:env(safe-area-inset-top,0px);
    background:rgba(0,0,0,0.55);
    backdrop-filter:blur(16px) saturate(160%);
    -webkit-backdrop-filter:blur(16px) saturate(160%);
    border-bottom:1px solid rgba(255,255,255,0.08);
    transition:background .3s ease, border-color .3s ease;
  }
  header.light-mode{
    background:rgba(245,245,247,0.7);
    border-bottom-color:rgba(0,0,0,0.08);
    color:var(--ink);
  }
  .nav-row{ display:flex; align-items:center; justify-content:space-between; height:52px; }
  .brand{ display:flex; align-items:center; gap:9px; text-decoration:none; font-weight:700; font-size:0.95rem; letter-spacing:-0.01em; }
  .brand svg{ width:20px; height:20px; }
  nav.links{ display:flex; gap:30px; }
  nav.links a{ text-decoration:none; font-size:0.82rem; opacity:0.82; transition:opacity .15s ease; }
  nav.links a:hover{ opacity:1; }
  .menu-btn{ display:none; background:none; border:none; color:inherit; width:34px; height:34px; cursor:pointer; }
  @media (max-width:820px){
    nav.links{ display:none; }
    .menu-btn{ display:block; }
    nav.links.open{
      display:flex; flex-direction:column; gap:0;
      position:absolute; top:52px; left:0; right:0;
      background:rgba(0,0,0,0.92); backdrop-filter:blur(16px);
      padding:6px 22px 18px;
    }
    header.light-mode nav.links.open{ background:rgba(245,245,247,0.96); }
    nav.links.open a{ padding:13px 0; border-bottom:1px solid rgba(128,128,128,0.2); }
  }

  /* ---------------- Hero ---------------- */
  .hero{
    min-height:100vh;
    display:flex; align-items:center; justify-content:center;
    text-align:center; overflow:hidden; padding:120px 24px 80px;
  }
  #heroCanvas{ position:absolute; inset:0; z-index:0; }
  .hero-glow{
    position:absolute; inset:0; z-index:0;
    background:radial-gradient(ellipse 60% 45% at 50% 45%, rgba(61,214,245,0.14), transparent 70%);
  }
  .hero-inner{ position:relative; z-index:2; max-width:900px; }
  .hero-kicker{ font-size:0.85rem; color:var(--ink-dim-dark); margin-bottom:22px; font-weight:500; }
  .hero-kicker b{ color:var(--cyan); font-weight:600; }
  h1.hero-title{
    font-size:clamp(2.4rem, 6.4vw, 5.2rem);
    line-height:1.04;
  }
  .hero-sub{
    margin:26px auto 0; max-width:52ch;
    color:var(--ink-dim-dark); font-size:1.1rem;
  }
  .hero-cta{ margin-top:38px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
  .btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:13px 28px; border-radius:100px; font-size:0.92rem; font-weight:500;
    text-decoration:none; transition:transform .15s ease, opacity .15s ease;
  }
  .btn-solid{ background:var(--orange); color:#000; }
  .btn-solid:hover{ transform:translateY(-1px); opacity:0.92; }
  .btn-outline{ border:1px solid rgba(255,255,255,0.28); color:var(--white); }
  .btn-outline:hover{ border-color:rgba(255,255,255,0.6); }
  .on-light .btn-outline{ border-color:rgba(0,0,0,0.22); color:var(--ink); }
  .on-light .btn-outline:hover{ border-color:rgba(0,0,0,0.5); }
  .scroll-cue{
    position:absolute; bottom:34px; left:50%; transform:translateX(-50%);
    font-size:0.72rem; color:var(--ink-dim-dark); z-index:2;
    display:flex; flex-direction:column; align-items:center; gap:8px;
  }
  .scroll-cue .bar{ width:1px; height:34px; background:linear-gradient(var(--cyan), transparent); animation:scrollcue 1.8s ease-in-out infinite; }
  @keyframes scrollcue{ 0%{ opacity:0.2; } 50%{ opacity:1; } 100%{ opacity:0.2; } }
  @media (prefers-reduced-motion: reduce){ .scroll-cue .bar{ animation:none; opacity:0.6; } }

  /* ---------------- Intro band ---------------- */
  .intro-band{ padding:120px 0; text-align:center; }
  .intro-band h2{ font-size:clamp(1.7rem, 4vw, 2.8rem); font-weight:300; max-width:20ch; margin:0 auto; }
  .intro-band h2 b{ font-weight:800; }

  /* ---------------- Product sections ---------------- */
  .product{ padding:140px 0 100px; }
  .product-head{ text-align:center; max-width:700px; margin:0 auto 60px; }
  .product-label{ font-size:0.88rem; color:var(--cyan); font-weight:500; margin-bottom:16px; }
  .on-light .product-label{ color:var(--orange-dim); }
  h2.product-name{ font-size:clamp(2.4rem, 6vw, 4.4rem); font-weight:800; letter-spacing:-0.02em; }
  .product-full{ font-size:1.05rem; margin-top:10px; opacity:0.7; }
  .product-tagline{ margin-top:22px; font-size:1.2rem; max-width:38ch; margin-left:auto; margin-right:auto; opacity:0.82; }

  .product-stage{
    position:relative; height:min(64vw, 520px); min-height:340px;
    border-radius:28px; overflow:hidden; margin-bottom:70px;
  }
  .on-dark .product-stage{ background:radial-gradient(ellipse at 50% 40%, #17171B, #000 75%); border:1px solid var(--line-dark); }
  .on-light .product-stage{ background:radial-gradient(ellipse at 50% 40%, #FFFFFF, #E4E4E7 75%); border:1px solid var(--line-light); }
  .product-stage canvas{ position:absolute; inset:0; width:100%; height:100%; }
  .stage-tag{
    position:absolute; bottom:20px; left:24px; font-size:0.72rem;
    padding:6px 12px; border-radius:100px;
    background:rgba(61,214,245,0.12); color:var(--cyan);
    border:1px solid rgba(61,214,245,0.3);
  }

  .feature-row{
    display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  }
  .on-dark .feature-row{ background:var(--line-dark); }
  .on-light .feature-row{ background:var(--line-light); }
  @media (max-width:760px){ .feature-row{ grid-template-columns:1fr; } }
  .feature{ padding:36px 32px; }
  .on-dark .feature{ background:var(--black); }
  .on-light .feature{ background:var(--off-white); }
  .feature h3{ font-size:1.15rem; font-weight:600; font-family:'Inter',sans-serif; margin-bottom:10px; }
  .feature p{ margin:0; font-size:0.94rem; opacity:0.72; max-width:34ch; }

  /* ---------------- AI warning section ---------------- */
  .warning-section{ padding:130px 0; }
  .warning-grid{ display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; }
  @media (max-width:900px){ .warning-grid{ grid-template-columns:1fr; gap:50px; } }
  .radar-stage{
    position:relative; aspect-ratio:1/1; border-radius:24px; overflow:hidden;
    background:radial-gradient(circle at 50% 50%, #0D1416, #000 78%);
    border:1px solid var(--line-dark);
  }
  #radarCanvas{ position:absolute; inset:0; width:100%; height:100%; }
  .warning-copy .product-label{ text-align:left; }
  .warning-copy h2{ font-size:clamp(2rem, 4.6vw, 3.2rem); font-weight:800; letter-spacing:-0.02em; max-width:12ch; }
  .warning-copy p.lead{ margin-top:20px; font-size:1.08rem; opacity:0.78; max-width:44ch; }
  .warning-list{ margin-top:34px; display:flex; flex-direction:column; gap:22px; }
  .warning-item{ display:flex; gap:16px; }
  .warning-item .dot{
    width:8px; height:8px; border-radius:50%; background:var(--cyan);
    margin-top:8px; flex:none; box-shadow:0 0 0 4px rgba(61,214,245,0.16);
  }
  .warning-item h3{ font-size:1.02rem; font-weight:600; font-family:'Inter',sans-serif; }
  .warning-item p{ margin:4px 0 0; font-size:0.92rem; opacity:0.68; max-width:42ch; }

  /* ---------------- System flow ---------------- */
  .flow-section{ padding:130px 0; text-align:center; }
  .flow-section h2{ font-size:clamp(1.8rem,4vw,2.8rem); font-weight:300; max-width:22ch; margin:0 auto 70px; }
  .flow-section h2 b{ font-weight:800; }
  .flow-row{ display:flex; align-items:center; justify-content:center; gap:0; flex-wrap:wrap; }
  .flow-node{
    width:220px; padding:30px 22px; border:1px solid var(--line-light); border-radius:20px;
    background:var(--white);
  }
  .flow-node h3{ font-size:1rem; font-weight:700; font-family:'Inter',sans-serif; }
  .flow-node p{ font-size:0.85rem; opacity:0.66; margin:8px 0 0; }
  .flow-arrow{ width:64px; height:1px; background:var(--line-light); position:relative; margin:0 -1px; }
  @media (max-width:760px){
    .flow-row{ flex-direction:column; gap:26px; }
    .flow-arrow{ width:1px; height:34px; }
  }

  /* ---------------- Spec table ---------------- */
  .spec-section{ padding:0 0 140px; }
  .spec-table{ width:100%; border-collapse:collapse; }
  .spec-table th, .spec-table td{
    text-align:left; padding:20px 18px; border-bottom:1px solid var(--line-light);
    font-size:0.92rem;
  }
  .spec-table thead th{ font-family:'Manrope',sans-serif; font-weight:800; font-size:1.05rem; }
  .spec-table tbody th{ font-weight:500; opacity:0.6; font-family:'Inter',sans-serif; }
  .spec-table td{ font-weight:500; }
  .spec-table-wrap{ overflow-x:auto; }

  /* ---------------- CTA ---------------- */
  .cta-section{ padding:150px 0; text-align:center; }
  .cta-section h2{ font-size:clamp(2rem,5.4vw,3.8rem); font-weight:300; max-width:16ch; margin:0 auto; }
  .cta-section h2 b{ font-weight:800; }
  .cta-section p{ margin:22px auto 0; max-width:42ch; opacity:0.72; }
  .cta-buttons{ margin-top:36px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
  .contact-strip{
    margin-top:64px; display:flex; justify-content:center; gap:48px; flex-wrap:wrap;
    font-size:0.86rem; color:var(--ink-dim-dark);
  }
  .contact-strip span b{ display:block; color:var(--white); font-weight:600; font-size:0.95rem; margin-bottom:4px; }

  footer{ padding:36px 0; border-top:1px solid var(--line-dark); }
  .footer-row{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:0.78rem; color:var(--ink-dim-dark); }
  .footer-row a{ text-decoration:none; opacity:0.8; }
  .footer-row a:hover{ opacity:1; }
  .footer-links{ display:flex; gap:20px; }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; }
  }