:root{
    --bg:#F7F7F5;
    --panel:#FFFFFF;
    --ink:#14151A;
    --slate:#6B6F76;
    --slate-light:#9A9DA3;
    --accent:#3A2FE0;
    --accent-soft:#ECEAFE;
    --line:#E4E3DE;
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--ink);
    font-family:'Inter',sans-serif;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  .display{font-family:'Space Grotesk',sans-serif;}
  .mono{font-family:'JetBrains Mono',monospace;}
  img{max-width:100%; display:block;}

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.01ms !important; transition-duration:0.01ms !important;}
    .reveal{opacity:1 !important; transform:none !important;}
    .hero .badge, .hero .eyebrow, .hero .headline, .hero .sub, .hero .hero-ctas{
      animation:none !important; opacity:1 !important; transform:none !important;
    }
  }

  /* ---------- MINIMAL ANIMATION SYSTEM ---------- */
  /* Hero: a quiet staged entrance, badge through CTAs, on page load only. */
  @keyframes fadeUp{
    from{opacity:0; transform:translateY(10px);}
    to{opacity:1; transform:translateY(0);}
  }
  .hero .badge{animation:fadeUp 0.5s ease-out both;}
  .hero .eyebrow{animation:fadeUp 0.5s ease-out 0.08s both;}
  .hero .headline{animation:fadeUp 0.5s ease-out 0.16s both;}
  .hero .sub{animation:fadeUp 0.5s ease-out 0.24s both;}
  .hero .hero-ctas{animation:fadeUp 0.5s ease-out 0.32s both;}

  /* Scroll reveal: sections rise and fade in once as they enter the viewport.
     Toggled by main.js via IntersectionObserver; .is-visible added on enter. */
  .reveal{opacity:0; transform:translateY(16px); transition:opacity 0.6s ease-out, transform 0.6s ease-out;}
  .reveal.is-visible{opacity:1; transform:translateY(0);}

  a{color:inherit;text-decoration:none;}
  button{font-family:inherit;cursor:pointer;border:none;background:none;}
  button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
    outline:2px solid var(--accent); outline-offset:2px; border-radius:4px;
  }

  .wrap{max-width:1240px; margin:0 auto; padding:0 24px;}
  section{padding:72px 0; position:relative;}

  /* ---------- SECTION TRANSITIONS ---------- */
  /* A quiet connective signature: a small centered glyph + hairline, instead of a hard border or
     an empty gap. It reads as a seam, not a wall — and doubles as a wayfinding mark since the
     glyph rotates through the brand's own diamond/arrow motif at low opacity. */
  .seam{
    display:flex; align-items:center; justify-content:center; gap:14px;
    padding:6px 0; position:relative; z-index:1;
  }
  .seam::before, .seam::after{
    content:''; flex:1; height:1px; background:var(--line); max-width:340px;
  }
  .seam-glyph{
    width:7px; height:7px; flex-shrink:0;
    background:var(--accent); opacity:0.55;
    clip-path:polygon(50% 0%, 100% 100%, 0% 100%);
  }
  .seam-dark{
    /* used when a seam sits visually against the dark process band below/above */
  }
  .seam-dark::before, .seam-dark::after{background:rgba(255,255,255,0.14);}

  /* ---------- NAV ---------- */
  nav{
    position:sticky; top:0; z-index:60;
    background:rgba(247,247,245,0.88);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  .nav-inner{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 24px; max-width:1240px; margin:0 auto;
  }
  .logo{display:flex; align-items:center; gap:9px;}
  .logo img{height:26px; width:auto; flex-shrink:0;}
  .logo-text{font-weight:600; font-size:14.5px; letter-spacing:-0.01em; white-space:nowrap;}
  .logo-sub{font-size:9.5px; color:var(--slate-light); letter-spacing:0.07em; margin-left:6px; text-transform:uppercase; white-space:nowrap;}
  .nav-links{display:flex; gap:28px; align-items:center;}
  .nav-links a{font-size:13.5px; color:var(--slate); transition:color 0.2s;}
  .nav-links a:hover{color:var(--ink);}
  .nav-cta{
    background:var(--ink); color:#fff; padding:9px 18px;
    border-radius:100px; font-size:13px; font-weight:500;
    display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
    transition:background 0.2s;
  }
  .nav-cta:hover{background:var(--accent);}

  /* ---------- HERO ---------- */
  .hero{padding:72px 0 0; text-align:center;}
  .badge{
    display:inline-flex; align-items:center; gap:7px;
    background:var(--panel); border:1px solid var(--line);
    padding:7px 14px; border-radius:100px;
    font-size:12px; color:var(--slate); margin-bottom:22px;
  }
  .badge-dot{width:6px; height:6px; border-radius:50%; background:#2FB670; flex-shrink:0;}
  .eyebrow{
    font-family:'JetBrains Mono',monospace; font-size:12px; letter-spacing:0.06em;
    color:var(--accent); text-transform:uppercase; margin-bottom:18px; display:block;
  }
  h1.headline{
    font-size:clamp(34px, 5.6vw, 66px);
    line-height:1.06; font-weight:600; letter-spacing:-0.02em;
    margin-bottom:22px; max-width:880px; margin-inline:auto;
  }
  .headline em{font-style:normal; color:var(--accent);}
  .sub{
    max-width:520px; margin:0 auto 30px; color:var(--slate); font-size:16px; line-height:1.6;
  }
  .hero-ctas{display:flex; gap:12px; justify-content:center; align-items:center; flex-wrap:wrap; margin-bottom:64px;}
  .btn-primary{
    background:var(--ink); color:#fff; padding:13px 26px; border-radius:100px;
    font-size:14.5px; font-weight:500; display:inline-flex; align-items:center; gap:8px;
    transition:background 0.2s, transform 0.2s;
  }
  .btn-primary:hover{background:var(--accent); transform:translateY(-1px);}
  .btn-secondary{
    border:1px solid var(--line); padding:13px 22px; border-radius:100px;
    font-size:14.5px; color:var(--ink); transition:border-color 0.2s, background 0.2s;
  }
  .btn-secondary:hover{border-color:var(--ink); background:var(--panel);}

  /* ---------- TERMS: TWO CARDS ---------- */
  .terms-head{text-align:center; max-width:580px; margin:0 auto 36px;}
  .terms-head h2{font-size:clamp(26px,3vw,36px); font-weight:600; letter-spacing:-0.01em; margin-bottom:10px;}
  .terms-head p{color:var(--slate); font-size:15px; line-height:1.6;}

  .terms-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
  .terms-card{
    border-radius:20px; padding:34px 30px; position:relative; overflow:hidden;
  }
  .terms-card.dark{background:var(--ink); color:#fff;}
  .terms-card.light{background:var(--panel); border:1px solid var(--line); color:var(--ink);}
  .terms-card.dark::before{
    content:''; position:absolute; top:-100px; right:-100px; width:260px; height:260px;
    background:radial-gradient(circle, rgba(58,47,224,0.5), transparent 70%);
    pointer-events:none;
  }
  .terms-tag{
    display:inline-block; font-family:'JetBrains Mono',monospace; font-size:11px;
    text-transform:uppercase; letter-spacing:0.05em; padding:5px 12px; border-radius:100px;
    margin-bottom:18px; position:relative; z-index:1;
  }
  .terms-card.dark .terms-tag{background:rgba(255,255,255,0.12); color:#fff;}
  .terms-card.light .terms-tag{background:var(--accent-soft); color:var(--accent);}
  .terms-card h3{font-size:24px; font-weight:600; margin-bottom:8px; position:relative; z-index:1;}
  .terms-card .terms-note{font-size:14px; margin-bottom:24px; position:relative; z-index:1;}
  .terms-card.dark .terms-note{color:rgba(255,255,255,0.6);}
  .terms-card.light .terms-note{color:var(--slate);}
  .terms-card ul{list-style:none; position:relative; z-index:1;}
  .terms-card li{
    font-size:14px; padding:10px 0; display:flex; gap:10px; align-items:flex-start;
  }
  .terms-card.dark li{color:rgba(255,255,255,0.85); border-top:1px solid rgba(255,255,255,0.1);}
  .terms-card.light li{color:var(--ink); border-top:1px solid var(--line);}
  .terms-card li:first-child{border-top:none;}
  .terms-card li svg{flex-shrink:0; margin-top:2px;}

  .guarantee-card{
    margin-top:20px; background:var(--accent-soft); border:1px solid #D6D1FB;
    border-radius:18px; padding:26px 28px; display:flex; gap:18px; align-items:flex-start;
  }
  .guarantee-icon{
    flex-shrink:0; width:42px; height:42px; border-radius:50%; background:#fff;
    display:flex; align-items:center; justify-content:center; box-shadow:0 4px 12px -4px rgba(58,47,224,0.3);
  }
  .guarantee-text h3{font-size:18px; font-weight:600; margin-bottom:6px;}
  .guarantee-text p{font-size:14px; color:var(--slate); line-height:1.6; max-width:560px;}

  /* ---------- PILLARS ---------- */
  .pillars-head{text-align:center; max-width:600px; margin:0 auto 48px;}
  .pillars-head .eyebrow{margin-bottom:14px;}
  .pillars-head h2{font-size:clamp(28px,3.4vw,40px); font-weight:600; letter-spacing:-0.01em; margin-bottom:12px;}
  .pillars-head p{color:var(--slate); font-size:15px; line-height:1.6;}

  .pillar-track{position:relative;}
  .pillar-track::before{
    content:''; position:absolute; top:34px; left:8%; right:8%; height:1px;
    background:repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
    z-index:0;
  }
  .pillar-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; position:relative; z-index:1;}
  .pillar-card{
    background:var(--panel); border:1px solid var(--line); border-radius:18px;
    padding:0 26px 28px; position:relative; overflow:hidden;
    transition:transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  }
  .pillar-card:hover{transform:translateY(-4px); border-color:var(--ink); box-shadow:0 16px 32px -20px rgba(0,0,0,0.25);}
  .pillar-badge{
    width:48px; height:48px; border-radius:50%; background:var(--ink); color:#fff;
    display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif;
    font-weight:600; font-size:16px; margin:24px auto 22px;
  }
  .pillar-card[data-level="3"] .pillar-badge{background:var(--accent);}
  .pillar-stage{
    display:block; text-align:center; font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--accent);
    text-transform:uppercase; letter-spacing:0.06em; margin-bottom:14px;
  }
  .pillar-card h3{font-size:23px; font-weight:600; margin-bottom:10px; font-family:'Space Grotesk',sans-serif; text-align:center;}
  .pillar-card p{font-size:14px; color:var(--slate); line-height:1.65; margin-bottom:20px; text-align:center;}
  .pillar-meter{height:4px; background:var(--line); border-radius:4px; overflow:hidden;}
  .pillar-meter span{display:block; height:100%; background:var(--ink); border-radius:4px;}
  .pillar-card[data-level="1"] .pillar-meter span{width:33%;}
  .pillar-card[data-level="2"] .pillar-meter span{width:66%;}
  .pillar-card[data-level="3"] .pillar-meter span{width:100%; background:var(--accent);}

  /* ---------- SHOWCASE: shared head ---------- */
  .showcase-head{display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:32px; gap:24px;}
  .showcase-head h2{font-size:clamp(24px,2.8vw,34px); font-weight:600; letter-spacing:-0.01em; max-width:480px;}
  .showcase-head p{color:var(--slate); font-size:14.5px; max-width:300px; line-height:1.6;}

  /* ---------- PROJECT SHOWCASE: real logo cards ---------- */
  .project-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
  .project-card{
    background:var(--panel); border:1px solid var(--line); border-radius:18px;
    padding:30px 24px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px;
    transition:transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  }
  .project-card:hover{transform:translateY(-3px); border-color:var(--ink); box-shadow:0 16px 32px -22px rgba(0,0,0,0.2);}
  .logo-tile{
    width:84px; height:84px; border-radius:16px; background:var(--panel); border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center; padding:14px; overflow:hidden;
  }
  .logo-tile img{width:100%; height:100%; object-fit:contain;}
  .project-card h4{font-size:17px; font-weight:600; font-family:'Space Grotesk',sans-serif;}
  .project-card .ptag{
    font-family:'JetBrains Mono',monospace; font-size:10.5px; text-transform:uppercase; letter-spacing:0.05em;
    background:var(--accent-soft); color:var(--accent); padding:5px 11px; border-radius:100px;
  }
  .project-card .ploc{font-size:12.5px; color:var(--slate-light); display:flex; align-items:center; gap:5px;}

  /* ---------- PRODUCT SHOWCASE: real 4:3 image cards ---------- */
  .product-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
  .product-card{
    display:block; background:var(--panel); border:1px solid var(--line); border-radius:18px; overflow:hidden;
    transition:transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  }
  .product-card:hover{transform:translateY(-4px); border-color:var(--ink); box-shadow:0 16px 32px -22px rgba(0,0,0,0.22);}
  .product-image{aspect-ratio:4/3; width:100%; overflow:hidden; background:var(--ink);}
  .product-image img{width:100%; height:100%; object-fit:cover;}
  .product-body{padding:20px 22px 24px;}
  .product-tag{
    display:inline-block; font-family:'JetBrains Mono',monospace; font-size:10.5px; text-transform:uppercase;
    letter-spacing:0.05em; background:var(--accent-soft); color:var(--accent); padding:5px 11px; border-radius:100px;
    margin-bottom:12px;
  }
  .product-card h4{font-size:19px; font-weight:600; font-family:'Space Grotesk',sans-serif; margin-bottom:4px;}
  .product-card .pdesc{font-size:13.5px; color:var(--slate); margin-bottom:16px;}
  .product-visit{
    display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:500; color:var(--ink);
    border-top:1px solid var(--line); padding-top:14px; width:100%; transition:color 0.2s, gap 0.2s;
  }
  .product-visit:hover{color:var(--accent); gap:9px;}

  /* ---------- PROCESS ---------- */
  .process{background:var(--ink); color:#fff;}
  .process-head{max-width:560px; margin-bottom:40px;}
  .process-head h2{font-size:clamp(26px,3vw,36px); font-weight:600; letter-spacing:-0.01em; margin-bottom:12px;}
  .process-head p{color:rgba(255,255,255,0.55); font-size:15px; line-height:1.6;}
  .process-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:0;}
  .process-step{padding:0 24px 0 0; border-right:1px solid rgba(255,255,255,0.12);}
  .process-step:last-child{border-right:none; padding-right:0;}
  .process-step .pnum{font-family:'JetBrains Mono',monospace; font-size:13px; color:var(--accent); display:block; margin-bottom:14px;}
  .process-step h4{font-size:16px; font-weight:600; margin-bottom:8px;}
  .process-step p{font-size:13.5px; color:rgba(255,255,255,0.55); line-height:1.6;}

  /* ---------- CTA BAND ---------- */
  .cta-band{padding:88px 0; text-align:center;}
  .cta-band h2{font-size:clamp(26px,4vw,44px); font-weight:600; letter-spacing:-0.02em; max-width:680px; margin:0 auto 16px; line-height:1.1;}
  .cta-band p{color:var(--slate); font-size:15px; margin-bottom:28px;}
  .cta-band .hero-ctas{justify-content:center; margin-bottom:0;}

  /* ---------- FOOTER ---------- */
  footer{border-top:1px solid var(--line); padding:36px 0;}
  .footer-inner{display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:28px;}
  .footer-brand{display:flex; align-items:center; gap:10px; font-size:13px; color:var(--slate-light);}
  .footer-brand img{height:22px; width:auto;}
  .footer-meta{display:flex; gap:36px; flex-wrap:wrap;}
  .footer-col .footer-label{
    font-family:'JetBrains Mono',monospace; font-size:10.5px; color:var(--slate-light);
    text-transform:uppercase; letter-spacing:0.05em; margin-bottom:8px; display:block;
  }
  .footer-col a, .footer-col span{font-size:13.5px; color:var(--ink); display:block;}
  .footer-col a:hover{color:var(--accent);}
  .footer-flag{font-size:15px; margin-right:4px;}

  /* =================================================================
     CONTACT MODAL
     ================================================================= */
  .modal-overlay{
    position:fixed; inset:0; background:rgba(20,21,26,0.6); backdrop-filter:blur(4px);
    z-index:100; display:none; align-items:center; justify-content:center; padding:20px;
    opacity:0; transition:opacity 0.25s;
  }
  .modal-overlay.open{display:flex;}
  .modal-overlay.show{opacity:1;}
  .modal-card{
    background:var(--panel); border-radius:22px; max-width:560px; width:100%;
    max-height:88vh; overflow-y:auto; padding:36px 36px 28px; position:relative;
    transform:translateY(12px) scale(0.98); transition:transform 0.25s;
    box-shadow:0 30px 80px -20px rgba(0,0,0,0.4);
  }
  .modal-overlay.show .modal-card{transform:translateY(0) scale(1);}
  .modal-close{
    position:absolute; top:20px; right:20px; width:32px; height:32px; border-radius:50%;
    background:var(--bg); display:flex; align-items:center; justify-content:center;
    color:var(--slate); transition:background 0.2s, color 0.2s;
  }
  .modal-close:hover{background:var(--accent-soft); color:var(--accent);}
  .modal-head{margin-bottom:24px;}
  .modal-head .eyebrow{margin-bottom:10px;}
  .modal-head h3{font-size:24px; font-weight:600; margin-bottom:6px;}
  .modal-head p{font-size:13.5px; color:var(--slate); line-height:1.5;}

  .form-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
  .form-field{display:flex; flex-direction:column; gap:6px; margin-bottom:14px;}
  .form-field.full{grid-column:1 / -1;}
  .form-field label{font-size:12.5px; font-weight:500; color:var(--ink);}
  .form-field .opt{color:var(--slate-light); font-weight:400;}
  .form-field input, .form-field select, .form-field textarea{
    border:1px solid var(--line); border-radius:10px; padding:10px 13px; font-size:14px;
    font-family:'Inter',sans-serif; color:var(--ink); background:var(--bg); transition:border-color 0.2s;
    width:100%;
  }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus{
    border-color:var(--accent); outline:none;
  }
  .form-field textarea{resize:vertical; min-height:90px;}
  .radio-row{display:flex; gap:10px;}
  .radio-pill{
    flex:1; border:1px solid var(--line); border-radius:10px; padding:10px 12px; text-align:center;
    font-size:13.5px; cursor:pointer; transition:border-color 0.2s, background 0.2s, color 0.2s;
    position:relative;
  }
  .radio-pill input{position:absolute; opacity:0; inset:0; cursor:pointer; margin:0;}
  .radio-pill.checked{border-color:var(--accent); background:var(--accent-soft); color:var(--accent); font-weight:500;}

  .form-submit{
    width:100%; background:var(--ink); color:#fff; padding:13px; border-radius:100px;
    font-size:14.5px; font-weight:500; margin-top:6px; transition:background 0.2s;
    display:flex; align-items:center; justify-content:center; gap:8px;
  }
  .form-submit:hover{background:var(--accent);}
  .form-submit:disabled{opacity:0.6; cursor:not-allowed;}
  .form-note{font-size:11.5px; color:var(--slate-light); text-align:center; margin-top:12px; line-height:1.5;}

  .form-success{display:none; text-align:center; padding:20px 0;}
  .form-success.show{display:block;}
  .form-success-icon{
    width:56px; height:56px; border-radius:50%; background:var(--accent-soft); color:var(--accent);
    display:flex; align-items:center; justify-content:center; margin:0 auto 18px;
  }
  .form-success h3{font-size:20px; font-weight:600; margin-bottom:8px;}
  .form-success p{font-size:14px; color:var(--slate); line-height:1.6; max-width:380px; margin:0 auto;}

  /* =================================================================
     RESPONSIVE — four tiers
     Large screens  : >1240px  (base styles above)
     Laptop         : 980–1240px
     Tablet         : 680–980px
     Mobile         : <680px
     ================================================================= */

  @media (max-width:1240px){
    .wrap{padding:0 28px;}
  }

  @media (max-width:980px){
    section{padding:56px 0;}
    .nav-links{display:none;}
    .terms-grid{grid-template-columns:1fr; gap:16px;}
    .pillar-grid{grid-template-columns:1fr; gap:14px;}
    .project-grid, .product-grid{grid-template-columns:repeat(2,1fr);}
    .process-grid{grid-template-columns:1fr 1fr; row-gap:30px;}
    .process-step{border-right:none; padding-right:0;}
    .process-step:nth-child(odd){border-right:1px solid rgba(255,255,255,0.12); padding-right:24px;}
    .showcase-head{flex-direction:column; align-items:flex-start; gap:10px;}
    .pillar-track::before{display:none;}
    .guarantee-card{flex-direction:column;}
    .footer-inner{flex-direction:column;}
    .form-grid{grid-template-columns:1fr;}
  }

  @media (max-width:640px){
    .wrap{padding:0 20px;}
    .hero{padding:48px 0 0;}
    section{padding:48px 0;}
    h1.headline{font-size:clamp(28px,8vw,38px);}
    .sub{font-size:14.5px;}
    .hero-ctas{margin-bottom:48px;}
    .project-grid, .product-grid{grid-template-columns:1fr;}
    .process-grid{grid-template-columns:1fr; row-gap:28px;}
    .process-step{border-right:none !important; padding-right:0 !important; padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,0.12);}
    .process-step:last-child{border-bottom:none; padding-bottom:0;}
    .terms-card{padding:26px 22px;}
    .footer-meta{gap:24px;}
    .nav-cta{padding:8px 14px; font-size:12.5px;}
    .logo-sub{display:none;}
    .modal-card{padding:28px 22px 22px;}
    .seam::before, .seam::after{max-width:80px;}
  }
