/* ============================================
   AM3R GROUP — SHARED STYLESHEET
   Dark Glassmorphism + Bento Grid (2026)
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg:           #0c0c0c;
  --bg-2:         #111111;
  --surface:      rgba(255, 255, 255, 0.05);
  --surface-hover:rgba(255, 255, 255, 0.08);
  --border:       rgba(245, 158, 11, 0.2);
  --border-hover: rgba(245, 158, 11, 0.55);
  --accent:       #f59e0b;
  --accent-dark:  #d97706;
  --accent-glow:  rgba(245, 158, 11, 0.35);
  --text:         #f5f5f5;
  --muted:        #9ca3af;
  --muted-2:      #6b7280;
  --radius:       16px;
  --radius-sm:    10px;
  --nav-h:        72px;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../assets/noise.svg');
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }

p { color: var(--muted); line-height: 1.75; }

/* ---------- Gold Gradient Text ---------- */
.gold-text {
  background: linear-gradient(135deg, #f59e0b 0%, #fcd34d 40%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Lighter gold gradient for the "3" in Am3r branding */
.brand-three {
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 45%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Layout Utilities ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

/* ---------- Scroll Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: 0 0 40px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
}

.badge.live {
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

.badge.dev {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--accent);
}

/* Platform availability badges */
.platform-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  background: #0c0c0c;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.platform-badge svg {
  flex-shrink: 0;
}

.badge.beta {
  background: #42f2fc;
  border-color: transparent;
  color: #000;
  font-weight: 700;
  -webkit-text-fill-color: #000;
}

.badge.deploy {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  border-color: transparent;
  color: #0c0c0c;
  font-weight: 700;
  -webkit-text-fill-color: #0c0c0c;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0c0c0c;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
}

/* "3" on gold button background must be white to stay visible */
.btn-primary span span {
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}

/* "3" inside badge must also be white */
.badge .brand-three {
  background: none;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(12, 12, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

/* Remove backdrop-filter when menu is open so it doesn't create a
   stacking context that traps the full-screen overlay inside z-index:100 */
.nav.menu-open.scrolled {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

/* Desktop: submenu as hover dropdown */
.has-submenu {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  right: 0;
  transform: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 6px 0;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  z-index: 200;
  margin-top: 0;
}

/* Invisible hover bridge between trigger and dropdown */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

/* Desktop: show on hover OR when .open is toggled via click */
.has-submenu:hover .nav-submenu,
.has-submenu.open .nav-submenu {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

.nav-submenu li a {
  display: block;
  padding: 10px 22px;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-submenu li a:hover {
  color: var(--accent);
  background: rgba(245, 158, 11, 0.08);
}

.nav-arrow {
  display: inline-block;
  font-size: 0.7em;
  margin-left: 2px;
  transition: transform 0.3s ease;
}

.has-submenu:hover .nav-arrow,
.has-submenu.open .nav-arrow {
  transform: rotate(180deg);
}

.nav-links .nav-cta {
  color: var(--accent);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.nav-links .nav-cta:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: rgba(245,158,11,0.08);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              width 0.25s ease;
}

/* Hamburger → X morph */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
}

/* Ambient background glow */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.15s both;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-founded {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-founded-stat {
  text-align: center;
}

.hero-founded-stat .num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-founded-stat .label {
  font-size: 0.8rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-founded-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.7s ease 2.2s forwards;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--muted-2), transparent);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.stat-card .stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============================================
   PRODUCTS / BENTO GRID
   ============================================ */
.products-header {
  text-align: center;
  margin-bottom: 64px;
}

.products-header .about-label {
  display: block;
  margin-bottom: 16px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-card {
  padding: 40px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(245,158,11,0.06), transparent 60%);
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 50px var(--accent-glow), 0 10px 40px rgba(0,0,0,0.5);
  transform: translateY(-5px);
}

.bento-card:hover::before {
  opacity: 1;
}

/* Linguist — spans 2 rows on left */
.bento-card--linguits {
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 880px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ---------- PHONE MOCKUP SHOWCASE ---------- */
.phone-showcase {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  /* filter removed — drop-shadow on a container forces offscreen rasterization,
     degrading image quality. The phone-frame box-shadow provides equivalent depth. */
}

/*
 * iPhone 17 Pro Max style:
 * — Flat titanium sides, tighter corner radius
 * — Ultra-thin bezels
 * — Prominent Dynamic Island pill
 * — Action button + Vol+/Vol- on left, Power on right
 * — Titanium frame ring via layered box-shadows
 */
.phone-frame {
  width: 280px;
  height: 590px;
  /* Black Titanium body — dark matte glass look */
  background: linear-gradient(175deg, #191919 0%, #0e0e0e 50%, #141414 100%);
  /* Tighter radius = modern flat-sided iPhone feel */
  border-radius: 44px;
  /* Ultra-thin bezel: 11px top (for DI), 8px sides, 14px bottom */
  padding: 11px 8px 14px;
  position: relative;
  /* Titanium frame: highlight → gap → band → outer shadow */
  box-shadow:
    0 0 0 1px #555555,          /* polished titanium highlight */
    0 0 0 3px #1a1a1a,          /* shadow gap inside frame */
    0 0 0 5.5px #404040,        /* titanium band */
    0 0 0 7px #111111,          /* outer edge shadow */
    0 40px 80px rgba(0,0,0,0.95),
    0 0 50px rgba(245,158,11,0.18),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Dynamic Island — wide pill, very close to top */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}

/* Action button — small pill, top-left side */
.phone-vol::before {
  content: '';
  position: absolute;
  top: -52px;
  left: 0;
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, #505050 0%, #333 100%);
  border-radius: 2px 0 0 2px;
}

/* Volume Up */
.phone-vol {
  position: absolute;
  left: -4px;
  top: 140px;
  width: 4px;
  height: 40px;
  background: linear-gradient(180deg, #505050 0%, #333 100%);
  border-radius: 2px 0 0 2px;
}

/* Volume Down */
.phone-vol::after {
  content: '';
  position: absolute;
  top: 52px;
  left: 0;
  width: 4px;
  height: 40px;
  background: linear-gradient(180deg, #505050 0%, #333 100%);
  border-radius: 2px 0 0 2px;
}

/* Power / Side button — right side, tall */
.phone-power {
  position: absolute;
  right: -4px;
  top: 160px;
  width: 4px;
  height: 80px;
  background: linear-gradient(180deg, #505050 0%, #333 100%);
  border-radius: 0 2px 2px 0;
}

.phone-screen {
  width: 100%;
  height: 100%;
  /* Inner radius = outer (44) minus padding (8-11) ≈ 33px */
  border-radius: 33px;
  overflow: hidden;
  background: #000;
  position: relative;
}

/* Sliding screenshots */
.phone-slides {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slideScreens 10s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

.phone-slides img {
  width: 33.333%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

@keyframes slideScreens {
  0%, 26%  { transform: translateX(0); }
  33%, 59% { transform: translateX(-33.333%); }
  66%, 92% { transform: translateX(-66.666%); }
  99%, 100%{ transform: translateX(0); }
}

/* Slide indicator dots */
.phone-dots {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.phone-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.3);
}

/* Dot animations — synced to slideScreens (10s, same easing) */
/* Slide 1: 0–26%  |  Slide 2: 33–59%  |  Slide 3: 66–92%  */
@keyframes dot1Active {
  0%,  26%              { background: var(--accent); }
  30%, 95%              { background: rgba(245,158,11,0.3); }
  99%, 100%             { background: var(--accent); }
}
@keyframes dot2Active {
  0%,  30%              { background: rgba(245,158,11,0.3); }
  33%, 59%              { background: var(--accent); }
  63%, 100%             { background: rgba(245,158,11,0.3); }
}
@keyframes dot3Active {
  0%,  63%              { background: rgba(245,158,11,0.3); }
  66%, 92%              { background: var(--accent); }
  96%, 100%             { background: rgba(245,158,11,0.3); }
}

.phone-dots .phone-dot:nth-child(1) {
  animation: dot1Active 10s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
.phone-dots .phone-dot:nth-child(2) {
  animation: dot2Active 10s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
.phone-dots .phone-dot:nth-child(3) {
  animation: dot3Active 10s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

.bento-card--deliber8 {
  grid-column: 2;
  grid-row: 1;
}

.bento-card--phonediet {
  grid-column: 2;
  grid-row: 2;
}

/* Est. strip below grid */
.bento-strip {
  grid-column: 1 / -1;
  padding: 24px 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.bento-strip-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.bento-strip-text strong {
  color: var(--accent);
}

.bento-card-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  display: block;
}

.bento-card-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.bento-card h3 {
  color: var(--text);
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.bento-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.bento-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.bento-card:hover .bento-card-arrow {
  gap: 14px;
}

/* Large card decorative number */
.bento-card--linguits .card-bg-num {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9rem;
  font-weight: 700;
  color: rgba(245,158,11,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* ============================================
   APP PAGES — HERO
   ============================================ */
.app-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 80px) 24px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.app-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.app-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.app-hero-icon {
  font-size: 5rem;
  display: block;
  margin: 0 auto 24px;
  animation: fadeInDown 0.6s ease 0.2s both;
}

.app-hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.app-hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.7s ease 0.6s both;
}

.app-hero-badge {
  animation: fadeInUp 0.7s ease 0.8s both;
}

/* ============================================
   APP PAGES — FEATURES
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================
   APP CTA STRIP
   ============================================ */
.app-cta {
  text-align: center;
  padding: 80px 0;
}

.app-cta h2 {
  margin-bottom: 16px;
}

.app-cta p {
  max-width: 480px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-emails {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.contact-emails .contact-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
  line-height: 1;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  user-select: all;
}

.contact-link:hover {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.08);
}

.contact-link .brand-three {
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 45%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.copy-btn {
  background: none;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-btn .check-icon {
  display: none;
}

.copy-btn.copied .copy-icon {
  display: none;
}

.copy-btn.copied .check-icon {
  display: block;
  color: #22c55e;
}

.copy-btn.copied {
  border-color: #22c55e;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--linguits {
    grid-column: 1;
    grid-row: auto;
    min-height: auto;
    justify-content: flex-start;
  }

  .bento-card--linguits .phone-showcase {
    display: none;
  }

  /* Scale phone down for mobile so it doesn't crush the content below */
  .phone-frame {
    width: 160px;
    height: 336px;
    border-radius: 32px;
    padding: 12px 7px 14px;
  }

  .phone-frame::before {
    width: 44px;
    height: 11px;
    top: 7px;
    border-radius: 6px;
  }

  .phone-screen {
    border-radius: 24px;
  }

  .phone-vol {
    top: 72px;
    height: 28px;
  }

  .phone-vol::after {
    top: 38px;
    height: 28px;
  }

  .phone-power {
    top: 96px;
    height: 44px;
  }

  .bento-card--deliber8,
  .bento-card--phonediet {
    grid-column: 1;
    grid-row: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Full-screen overlay menu */
  .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #080808;
    border: none;
    padding: 0;
    z-index: 9998;
    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0s;
  }

  /* Staggered link entrance */
  .nav-links > li {
    width: auto;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav-links.open > li:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
  .nav-links.open > li:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.13s; }
  .nav-links.open > li:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
  .nav-links.open > li:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.23s; }

  /* Products submenu — reset desktop dropdown, collapse on mobile */
  .has-submenu {
    position: static;
  }

  .nav-submenu {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    list-style: none;
    background: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    min-width: auto;
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    z-index: auto;
    margin-top: 0;
  }

  .has-submenu:hover .nav-submenu {
    max-height: 0;
    opacity: 1;
    pointer-events: all;
    visibility: visible;
    transform: none;
  }

  .has-submenu.open .nav-submenu {
    max-height: 300px;
  }

  .nav-submenu li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .has-submenu.open .nav-submenu li:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
  .has-submenu.open .nav-submenu li:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.14s; }
  .has-submenu.open .nav-submenu li:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }

  .nav-submenu li a {
    font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
    font-weight: 500 !important;
    color: var(--muted) !important;
    padding: 6px 32px !important;
    background: none !important;
  }

  .nav-submenu li a:hover {
    color: var(--accent) !important;
    background: none !important;
  }

  /* Arrow — reset desktop hover rotation, use click-based .open on mobile */
  .has-submenu:hover .nav-arrow {
    transform: none;
  }

  .has-submenu.open .nav-arrow {
    transform: rotate(180deg);
  }

  .nav-links a {
    display: block;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: rgba(245, 245, 245, 0.75) !important;
    padding: 10px 32px !important;
    text-align: center;
    transition: color 0.2s ease, transform 0.2s ease !important;
  }

  .nav-links a:hover {
    color: var(--accent) !important;
    transform: translateX(6px);
  }

  .nav-links .nav-cta {
    margin: 0 !important;
    background: none !important;
    border: none !important;
    color: var(--accent) !important;
    padding: 10px 32px !important;
    border-radius: 0 !important;
    font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
  }

  .nav-links .nav-cta:hover {
    background: none !important;
  }

  /* Decorative overlay line */
  .nav-links::before {
    content: 'Am3r';
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 30vw;
    font-weight: 900;
    color: rgba(245, 158, 11, 0.03);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .nav-toggle {
    display: flex;
    z-index: 9999;
    position: relative;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero-founded {
    gap: 16px;
    flex-wrap: nowrap;
  }

  .hero-founded-stat .num {
    font-size: 1.4rem;
  }

  .hero-founded-stat .label {
    font-size: 0.6rem;
  }

  .hero-founded-divider {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================
   HERO CENTERED LAYOUT + PHONE SHOWCASE
   ===================================================== */

/* Hero inner wrapper — centered single column */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  max-width: 900px;
  width: 100%;
}

/* ---- Phone showcase container ---- */
.hero-phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin: 40px 0 48px;
}

.hero-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ---- Side phones (Linguist & Phone Diet) ---- */
.hero-phone--left .phone-frame,
.hero-phone--right .phone-frame {
  width: 138px;
  height: 290px;
  border-radius: 22px;
  padding: 5px 4px 7px;
  box-shadow:
    0 0 0 1px #555,
    0 0 0 2px #1a1a1a,
    0 0 0 3px #404040,
    0 0 0 4.5px #111,
    0 16px 40px rgba(0,0,0,0.9),
    0 0 20px rgba(245,158,11,0.1);
}

/* Dynamic Island - side phones */
.hero-phone--left .phone-frame::before,
.hero-phone--right .phone-frame::before {
  width: 43px;
  height: 12px;
  top: 3px;
  border-radius: 7px;
}

.hero-phone--left .phone-screen,
.hero-phone--right .phone-screen {
  border-radius: 17px;
}

/* Buttons - side phones */
.hero-phone--left .phone-vol,
.hero-phone--right .phone-vol {
  left: -3px;
  top: 68px;
  width: 3px;
  height: 20px;
}
.hero-phone--left .phone-vol::before,
.hero-phone--right .phone-vol::before {
  top: -24px;
  width: 3px;
  height: 13px;
}
.hero-phone--left .phone-vol::after,
.hero-phone--right .phone-vol::after {
  top: 26px;
  width: 3px;
  height: 20px;
}
.hero-phone--left .phone-power,
.hero-phone--right .phone-power {
  right: -3px;
  top: 78px;
  width: 3px;
  height: 38px;
}

/* Side phones: dimmed + offset for depth effect */
.hero-phone--left,
.hero-phone--right {
  opacity: 0.6;
  transform: translateY(28px);
}

/* ---- Center phone (Deliber8) ---- */
.hero-phone--center .phone-frame {
  width: 178px;
  height: 374px;
  border-radius: 28px;
  padding: 8px 5px 9px;
  box-shadow:
    0 0 0 1px #555,
    0 0 0 2px #1a1a1a,
    0 0 0 3.5px #404040,
    0 0 0 5px #111,
    0 28px 64px rgba(0,0,0,0.95),
    0 0 40px rgba(245,158,11,0.22);
}

.hero-phone--center .phone-frame::before {
  width: 55px;
  height: 16px;
  top: 5px;
  border-radius: 9px;
}

.hero-phone--center .phone-screen {
  border-radius: 21px;
}

.hero-phone--center .phone-vol {
  left: -3px;
  top: 88px;
  width: 3px;
  height: 26px;
}
.hero-phone--center .phone-vol::before {
  top: -30px;
  width: 3px;
  height: 17px;
}
.hero-phone--center .phone-vol::after {
  top: 32px;
  width: 3px;
  height: 26px;
}
.hero-phone--center .phone-power {
  right: -3px;
  top: 100px;
  width: 3px;
  height: 50px;
}

/* App label beneath each phone */
.hero-phone-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

/* Stagger each phone so they show different screenshots */
.hero-slides-2 {
  animation-delay: -3.33s;
}
.hero-slides-3 {
  animation-delay: -6.66s;
}

/* ---- Hero phone responsive ---- */
@media (max-width: 900px) {
  /* Mobile: show only Linguist phone, hide Deliber8 & Phone Diet */
  .hero-phone--center,
  .hero-phone--right {
    display: none;
  }
  .hero-phone--left {
    opacity: 1;
    transform: none;
  }
  .hero-phone--left .phone-frame {
    width: 160px;
    height: 336px;
    border-radius: 26px;
    padding: 7px 5px 8px;
  }
  .hero-phone--left .phone-frame::before {
    width: 44px;
    height: 11px;
    top: 4px;
    border-radius: 6px;
  }
  .hero-phone--left .phone-screen {
    border-radius: 20px;
  }
  .hero-phones {
    margin: 24px 0 32px;
  }
}

/* ============================================
   WAITLIST FORM
   ============================================ */

.waitlist-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.waitlist-form-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.waitlist-input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 400px;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition);
}

.waitlist-input-group:focus-within {
  border-color: var(--border-hover);
}

.waitlist-input-group input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.waitlist-input-group input[type="email"]::placeholder {
  color: var(--muted-2);
}

.waitlist-input-group button {
  padding: 14px 24px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #0c0c0c;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.waitlist-input-group button:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.waitlist-input-group button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-status {
  font-size: 0.85rem;
  min-height: 20px;
  transition: all 0.3s ease;
}

.waitlist-status-success {
  color: #22c55e;
}

.waitlist-status-error {
  color: #ef4444;
}

@media (max-width: 480px) {
  .waitlist-input-group {
    flex-direction: column;
    border-radius: var(--radius-sm);
  }
  .waitlist-input-group button {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  }
}

/* ============================================
   SLIDER CAPTCHA
   ============================================ */

.captcha-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.captcha-backdrop.captcha-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.captcha-modal {
  background: #141414;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 360px;
  width: 100%;
  padding: 20px;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.captcha-visible .captcha-modal {
  transform: translateY(0) scale(1);
}

.captcha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.captcha-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.captcha-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

.captcha-close:hover {
  color: var(--text);
}

.captcha-canvas-wrap {
  position: relative;
  width: 320px;
  height: 200px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.captcha-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.captcha-piece {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
  transition: none;
}

/* Success animation */
.captcha-success {
  animation: captchaFlashGreen 0.6s ease;
}

@keyframes captchaFlashGreen {
  0% { box-shadow: inset 0 0 0 0 rgba(34, 197, 94, 0); }
  40% { box-shadow: inset 0 0 40px 10px rgba(34, 197, 94, 0.3); }
  100% { box-shadow: inset 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Fail animation */
.captcha-fail {
  animation: captchaShake 0.5s ease;
}

@keyframes captchaShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(3px); }
}

.captcha-instruction {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 12px 0;
}

/* Slider track */
.captcha-slider-wrap {
  padding: 0 4px;
}

.captcha-slider-track {
  position: relative;
  height: 44px;
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.captcha-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.2));
  border-radius: 22px;
  transition: none;
}

.captcha-slider-handle {
  position: absolute;
  top: 2px;
  left: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c0c0c;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  transition: box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.captcha-slider-handle:active,
.captcha-slider-handle.active {
  cursor: grabbing;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
}

.captcha-status {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 24px;
  margin-top: 8px;
}

.captcha-status-success {
  color: #22c55e;
}

.captcha-status-fail {
  color: #ef4444;
}

/* RTL support */
[dir="rtl"] .captcha-slider-handle svg {
  transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 380px) {
  .captcha-modal {
    padding: 16px;
  }
  .captcha-canvas-wrap {
    width: 280px;
    height: 175px;
  }
}
