/* ===== TOKENS — WHITE THEME ===== */
:root{
  --bg: #FFFFFF;
  --panel: #F6F7F9;
  --panel-2: #EFF1F4;
  --hairline: #E5E7EB;
  --text: #12141A;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --silver: #7B5FE0;
  --blue: #3054EC;
  --violet: #B026D6;
  --dawn: linear-gradient(120deg, var(--violet), var(--blue));

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1120px;
}

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

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== LAYOUT HELPERS ===== */
.section-inner, .nav-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.section-title{
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
  max-width: 620px;
}

.section{ padding: 128px 0; position: relative; }
.section-alt{ background: var(--panel); border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline); }

/* ===== NAV ===== */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo{ display:flex; align-items:center; gap: 10px; }
.nav-logo-img{ height: 30px; width: auto; }
.nav-logo-text{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-logo-text b{ color: var(--muted); font-weight: 500; margin-left: 1px; }
.nav-links{ display:flex; gap: 36px; }
.nav-links a{
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible{ color: var(--text); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display:block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav-mobile{
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #FFFFFF;
  border-top: 1px solid var(--hairline);
}
.nav-mobile.is-open{ max-height: 320px; }
.nav-mobile a{
  padding: 16px 32px;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--hairline);
}

/* ===== HERO ===== */
.hero{
  position: relative;
  display:flex;
  flex-direction: column;
  align-items: center;
  padding: 150px 32px 100px;
  overflow: hidden;
}
.hero-inner{
  max-width: 700px;
  width: 100%;
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-sub{ margin-left: auto; margin-right: auto; }
.hero-cta{ justify-content: center; }
.hero-banner{ max-width: 1040px; }
.hero-title{
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-sub{
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-cta{ display:flex; gap: 16px; flex-wrap: wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary{
  background: var(--dawn);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(48,84,236,0.22);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 28px rgba(48,84,236,0.3); }
.btn-ghost{
  border: 1px solid var(--hairline);
  color: var(--text);
}
.btn-ghost:hover{ background: var(--panel); border-color: var(--muted-2); }

/* hero banner photo */
.hero-banner{
  margin-top: 64px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(48,84,236,0.22), 0 4px 16px rgba(16,24,40,0.06);
  border: 1px solid var(--hairline);
}
.hero-banner-img{
  width: 100%;
  height: auto;
  display: block;
}

/* ===== ABOUT ===== */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
}
.lead{
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
}
.about-body p{
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 16px;
  max-width: 560px;
}
.about-body .pull{
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-top: 32px;
}

/* ===== BUILD GRID ===== */
.build-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.build-card{
  background: #FFFFFF;
  padding: 44px;
  min-height: 220px;
  display:flex;
  flex-direction:column;
  justify-content: flex-end;
  transition: background 0.25s ease;
}
.build-card:hover{ background: var(--panel); }
.build-icon{
  color: var(--blue);
  margin-bottom: 20px;
  width: 34px;
  height: 34px;
}
.build-tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: auto;
}
.build-card h3{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 24px 0 12px;
}
.build-card p{ color: var(--muted); font-size: 15px; max-width: 380px; }

/* ===== VISION ===== */
.vision{ text-align:center; }
.vision .section-inner{ max-width: 760px; }
.vision-statement{
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  background: var(--dawn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vision-body{ color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto; }

/* ===== PRODUCTS ===== */
.product-card{
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 48px;
  margin-bottom: 24px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.product-card-visual{ display:flex; justify-content:center; }
.product-banner-img{
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(48,84,236,0.2);
}

.product-card--stacked{
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.product-card-visual--lg{ width: 100%; }
.product-banner-img--lg{
  width: 100%;
  max-height: 520px;
  min-height: 320px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 16px;
}

@media (max-width: 700px){
  .product-card{ grid-template-columns: 1fr; }
  .product-card-visual{ order: -1; }
  .product-banner-img--lg{ max-height: 320px; min-height: 220px; }
}
.product-status{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 20px;
}
.status-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(48,84,236,0.14);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot{
  0%,100%{ opacity: 1; }
  50%{ opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce){ .status-dot{ animation:none; } }

.status-text{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.product-name{
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}
.product-desc{ color: var(--muted); max-width: 560px; }

.next-card{
  border: 1px dashed var(--hairline);
  border-radius: 20px;
  padding: 40px 48px;
}
.next-label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.next-body{ color: var(--muted); max-width: 560px; }

/* ===== TAG CLOUD ===== */
.tag-cloud{ display:flex; flex-wrap: wrap; gap: 12px; }
.tag{
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  background: #FFFFFF;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tag:hover{ border-color: var(--blue); color: var(--text); }

/* ===== CTA ===== */
.cta-section{ text-align:center; }
.cta-inner{ display:flex; flex-direction:column; align-items:center; gap: 32px; }
.cta-title{
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
}
.cta-sub{ color: var(--muted); font-size: 16px; margin-top: 12px; }

.contact-form{
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.form-row{ display:flex; flex-direction:column; gap: 8px; }
.form-label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.form-input{
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus{
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(48,84,236,0.12);
}
.form-textarea{ resize: vertical; min-height: 110px; }
.form-submit{
  align-self: flex-start;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}
.form-submit:disabled{ opacity: 0.6; cursor: not-allowed; }
.hp-field{ position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.cta-direct{
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.legal-link-inline{
  color: var(--blue);
  border-bottom: 1px solid rgba(48,84,236,0.3);
}
.legal-link-inline:hover{ border-color: var(--blue); }

/* ===== FOOTER ===== */
.footer{
  border-top: 1px solid var(--hairline);
  padding: 56px 32px;
  background: var(--panel);
}
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  text-align:center;
}
.footer-logo-img{ height: 34px; width:auto; margin: 0 auto 16px; }
.footer-logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.footer-logo span{ color: var(--muted); font-weight: 500; margin-left: 2px; }
.footer-tagline{ color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.footer-copy{ color: var(--muted-2); font-size: 12px; font-family: var(--font-mono); }

/* ===== LEGAL LINKS ===== */
.footer-legal{
  display:flex;
  gap: 20px;
  justify-content:center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-legal a{
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-legal a:hover{ color: var(--blue); }

/* ===== SCROLL REVEAL ===== */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-mobile{ display:flex; }
  .hero{ padding-top: 120px; }
  .hero-inner{ text-align: left; }
  .hero-cta{ justify-content: flex-start; }
  .about-grid{ grid-template-columns: 1fr; gap: 32px; }
  .build-grid{ grid-template-columns: 1fr; }
  .section{ padding: 88px 0; }
  .product-card, .next-card{ padding: 32px; }
}

/* ===== TOAST ===== */
.toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #FFFFFF;
  font-size: 14px;
  padding: 14px 22px;
  border-radius: 12px;
  max-width: min(90vw, 420px);
  text-align: center;
  box-shadow: 0 12px 32px rgba(16,24,40,0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}
.toast.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* focus states for accessibility */
a:focus-visible, .btn:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
