/* ============================================================
   Smart Translation · Landing · AI-Native Visual System
   - Electric purple #DE33FF brand
   - Dark-first with mesh-blob background
   - Glass panels + brand-glow borders
   - Inter UI font
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  color-scheme: dark;

  /* Brand */
  --accent:       #DE33FF;
  --accent-deep:  #A31FC2;
  --accent-hi:    #F0A8FF;
  --accent-weak:  rgba(222, 51, 255, 0.12);
  --accent-glow:  rgba(222, 51, 255, 0.28);
  --cta:          #10B981;

  /* Surface */
  --bg:           #08040F;
  --bg-soft:      #0F0820;
  --surface:      rgba(22, 14, 38, 0.72);
  --surface-2:    rgba(32, 20, 54, 0.78);
  --surface-solid:#160E26;
  --glass-edge:   rgba(255, 255, 255, 0.07);

  /* Text */
  --text:         #F3EEFA;
  --text-soft:    #C3BBD2;
  --muted:        #8A839A;
  --muted-2:      rgba(195, 187, 210, 0.55);

  /* Border / shadow */
  --border:       rgba(222, 51, 255, 0.18);
  --border-soft:  rgba(255, 255, 255, 0.08);
  --shadow-lg:    0 30px 80px rgba(10, 2, 28, 0.6), 0 0 0 1px rgba(222, 51, 255, 0.08);
  --shadow-md:    0 18px 44px rgba(10, 6, 18, 0.45);
  --shadow-glow:  0 0 0 1px rgba(222, 51, 255, 0.25), 0 12px 40px rgba(222, 51, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  /* Radii */
  --radius-xl:    28px;
  --radius-lg:    20px;
  --radius:       16px;
  --radius-sm:    12px;

  /* Layout */
  --max:          1180px;

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{ box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: var(--font);
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Mesh-blob ambient background, layered behind everything. */
body::before{
  content: "";
  position: fixed;
  inset: -10% -10% -10% -10%;
  z-index: -2;
  background:
    radial-gradient(560px 480px at 12% 10%,  rgba(222, 51, 255, 0.22), transparent 60%),
    radial-gradient(680px 540px at 88% 18%,  rgba(130, 80, 220, 0.18), transparent 62%),
    radial-gradient(760px 600px at 55% 92%,  rgba(222, 51, 255, 0.16), transparent 60%),
    radial-gradient(520px 420px at 92% 78%,  rgba(70, 32, 140, 0.22), transparent 64%);
  filter: blur(20px);
  pointer-events: none;
}
body::after{
  /* subtle grain for that "rendered" feel */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .5;
  mix-blend-mode: screen;
}

a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--accent-hi); }

*:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.container{ max-width: var(--max); margin: 0 auto; padding: 22px 20px; }

/* ================== Navigation ================== */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 4, 15, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner{
  max-width: var(--max);
  margin: 0 auto;
  display:flex; align-items:center; justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
}
.brand{
  display:inline-flex; align-items:center; gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-logo{
  width: 30px; height: 30px;
  border-radius: 9px;
  box-shadow:
    0 0 0 1px rgba(222, 51, 255, 0.35),
    0 8px 24px rgba(222, 51, 255, 0.35);
}
.nav-links{ display:flex; gap: 8px; flex-wrap: wrap; align-items:center; }
.chip{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 13px;
  transition: all .18s ease;
}
.chip:hover{
  background: var(--accent-weak);
  border-color: var(--border);
  color: var(--text);
  text-decoration: none;
}

.lang{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 4px 10px 4px 12px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 13px;
  position: relative;
}
.lang select{
  appearance: none;
  -webkit-appearance: none;
  border: 0; outline: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  padding: 2px 18px 2px 4px;
  cursor: pointer;
  font-family: inherit;
}
.lang select option{
  background: var(--surface-solid);
  color: var(--text);
}
.lang::after{
  content: "▾";
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 11px;
  pointer-events: none;
}

/* ================== Hero ================== */
.hero{
  position: relative;
  padding: 72px 0 56px;
}
/* Hero glow: no overflow-hidden, no mask. Blobs are far inside the hero
   so a large blur radius produces a soft, edgeless glow that naturally
   fades instead of showing a rectangular clipping edge. */
.hero-bg{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-bg .blob{
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .4;
  animation: floatBlob 14s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-bg .blob-a{ top: 8%;  left: -4%;  background: #DE33FF; }
.hero-bg .blob-b{ top: 24%; right: -6%; background: #7B2CF0; animation-duration: 18s; animation-direction: alternate-reverse; }
.hero-bg .blob-c{ bottom: -6%; left: 32%; background: #B533FF; opacity: .26; animation-duration: 22s; }
@keyframes floatBlob{
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px,-30px) scale(1.08); }
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg, var(--accent-weak), rgba(255,255,255,0.02));
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.kicker-dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot{
  0%,100%{ transform: scale(1); opacity: 1; }
  50%    { transform: scale(1.35); opacity: .7; }
}

.headline{
  margin: 0 0 20px;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.headline-brand{
  display: block;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0A8FF 40%, #DE33FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 4px;
}
.headline-sub{
  display: block;
  margin-top: 6px;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0.92;
}
.subhead{
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.65;
  max-width: 58ch;
}
.subhead strong{ color: var(--text); font-weight: 700; }

.cta{
  display:flex; gap: 12px; flex-wrap: wrap; align-items:center;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  font-family: inherit;
}
.btn:hover{ text-decoration: none; transform: translateY(-1px); }
.btn small{ font-weight: 600; color: var(--muted); font-size: 12px; }

.btn.primary{
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn.primary small{ color: rgba(255,255,255,0.82); }
.btn.primary:hover{
  box-shadow:
    0 0 0 1px rgba(222, 51, 255, 0.35),
    0 18px 52px rgba(222, 51, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn.ghost{
  background: rgba(255,255,255,0.04);
  border-color: var(--border-soft);
  color: var(--text-soft);
}
.btn.ghost:hover{
  background: var(--accent-weak);
  border-color: var(--border);
  color: var(--text);
}

.social{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
.stars{
  display: inline-flex;
  gap: 2px;
  color: #FFC94A;
  font-size: 14px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 201, 74, 0.45);
}
.social-dot{
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted);
  opacity: .6;
}

/* Hero visual (browser mockup) */
.hero-visual{
  position: relative;
  perspective: 1200px;
}
.mockup{
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(32, 20, 54, 0.85), rgba(22, 14, 38, 0.85));
  box-shadow:
    0 40px 90px rgba(10, 2, 28, 0.7),
    0 0 0 1px rgba(222, 51, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transform: rotate(-1.2deg);
  transition: transform .4s ease;
}
.mockup:hover{ transform: rotate(0) translateY(-4px); }
.mockup-bar{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.2);
}
.mockup-dots{ display:flex; gap: 6px; }
.mockup-dots span{
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.mockup-dots span:nth-child(1){ background: #FF5F56; }
.mockup-dots span:nth-child(2){ background: #FFBD2E; }
.mockup-dots span:nth-child(3){ background: #27C93F; }
.mockup-url{
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  padding: 5px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}
.mockup-body{
  padding: 22px 22px 26px;
  font-size: 15px;
  line-height: 1.85;
}
.mockup-title{
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.mockup-p{
  color: var(--text-soft);
  margin: 0 0 14px;
}
.mk-word{
  position: relative;
  border-bottom: 2px solid rgba(222, 51, 255, 0.55);
  padding-bottom: 1px;
  color: var(--text);
  font-weight: 600;
}
.mk-word.mk-hover{
  background: rgba(222, 51, 255, 0.12);
  border-bottom-color: var(--accent);
  border-radius: 3px;
  padding: 1px 2px 2px;
}
.mk-tip{
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(32, 20, 54, 0.98), rgba(22, 14, 38, 0.98));
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow:
    0 12px 32px rgba(10, 2, 28, 0.6),
    0 0 0 1px rgba(222, 51, 255, 0.4),
    0 4px 18px rgba(222, 51, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.mk-tip::after{
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(22, 14, 38, 0.98);
  filter: drop-shadow(0 1px 0 rgba(222, 51, 255, 0.3));
}
.mk-full{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-weak);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.6;
}
.mk-full-label{
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 4px;
}

/* Floating CEFR chip over the mockup */
.mockup-float{
  position: absolute;
  right: -14px;
  top: 28%;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #DE33FF, #A31FC2);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow:
    0 18px 44px rgba(222, 51, 255, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transform: rotate(3deg);
  animation: floatChip 6s ease-in-out infinite alternate;
}
.mockup-float small{ display: block; font-size: 10px; font-weight: 500; opacity: 0.9; margin-top: 2px; }
@keyframes floatChip{
  0%   { transform: rotate(3deg) translateY(0); }
  100% { transform: rotate(3deg) translateY(-8px); }
}

/* ================== Section basics ================== */
.section{ padding: 64px 0 40px; position: relative; }
.section h2{
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--text);
}
.section-lead{
  max-width: 64ch;
  color: var(--text-soft);
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.65;
}
.eyebrow{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 10px;
}

/* ================== Bento Grid ================== */
.bento{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(170px, auto);
  gap: 16px;
}
.bento-card{
  position: relative;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 22px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento-card::before{
  /* soft brand glow in corner */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(340px 200px at 0% 0%, var(--accent-weak), transparent 60%);
  opacity: 0.6;
  transition: opacity .25s ease;
}
.bento-card:hover{
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
}
.bento-card:hover::before{ opacity: 1; }

.bento-card > *{ position: relative; z-index: 1; }

.bento-card h3{
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.bento-card p{
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.6;
}

.bento-icon{
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--accent-hi);
  background: var(--accent-weak);
  border: 1px solid var(--border);
  margin-bottom: 2px;
}
.bento-icon svg{ width: 20px; height: 20px; }

/* Asymmetric placements */
.b-cefr     { grid-column: span 4; grid-row: span 2; }
.b-bilingual{ grid-column: span 2; grid-row: span 1; }
.b-wordbook { grid-column: span 2; grid-row: span 1; }
.b-select   { grid-column: span 2; grid-row: span 1; }
.b-floating { grid-column: span 2; grid-row: span 1; }
.b-modes    { grid-column: span 2; grid-row: span 1; }

/* CEFR hero card inner visual: pills */
.b-cefr{ min-height: 360px; }
.cefr-hero-visual{
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.cefr-sample{
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text);
}
.cefr-sample .w{
  position: relative;
  border-bottom: 2px solid rgba(222, 51, 255, 0.45);
  padding-bottom: 1px;
}
.cefr-sample .tr{
  font-size: 0.82em;
  color: var(--accent-hi);
  margin-left: 3px;
  font-weight: 600;
}
.cefr-chips{
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
}
.cefr-chip{
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.02em;
}
.cefr-chip[data-l="A1"]{ background: #4CAF50; }
.cefr-chip[data-l="A2"]{ background: #2196F3; }
.cefr-chip[data-l="B1"]{ background: #FFC107; color: #201700; }
.cefr-chip[data-l="B2"]{ background: #FF9800; }
.cefr-chip[data-l="C1"]{ background: #F44336; }
.cefr-chip[data-l="C2"]{ background: #9C27B0; }
.cefr-chip.active{
  outline: 2px solid rgba(255,255,255,0.25);
  outline-offset: 2px;
  box-shadow: 0 0 18px currentColor;
}

/* Wordbook mini list */
.wb-list{ display: grid; gap: 6px; margin-top: auto; }
.wb-item{
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border-soft);
  font-size: 12.5px;
}
.wb-item .wb-w{ font-weight: 700; color: var(--text); }
.wb-item .wb-t{ color: var(--muted); }

/* Floating widget mini */
.fw-dock{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #DE33FF, #A31FC2);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  box-shadow: 0 12px 30px rgba(222, 51, 255, 0.35);
  width: fit-content;
}

/* Modes badge pair */
.modes-pair{
  margin-top: auto;
  display: inline-flex;
  padding: 3px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  width: fit-content;
}
.modes-pair span{
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.modes-pair .on{
  background: linear-gradient(135deg, #DE33FF, #A31FC2);
  color: #fff;
  box-shadow: 0 6px 18px rgba(222, 51, 255, 0.35);
}

/* Select demo tag cluster */
.select-demo{
  margin-top: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.select-demo .tag{
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
  color: var(--text-soft);
  line-height: 1;
}
.select-demo .tag.hi{
  border-color: var(--border);
  background: var(--accent-weak);
  color: var(--text);
}
.select-demo .tag.cefr-b2{
  background: #FF9800;
  color: #1a0a00;
  border-color: #FF9800;
}
.select-demo .tag-ico{
  padding: 0;
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  color: var(--text-soft);
}
.select-demo .tag-ico svg{ width: 14px; height: 14px; }
.select-demo .tag-ico:hover{
  color: var(--accent-hi);
  border-color: var(--border);
  background: var(--accent-weak);
}
.select-demo .tag-ico-on{
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(222, 51, 255, 0.4);
}

/* ================== Legacy/reused layout primitives ================== */
.card{
  border: 1px solid var(--border-soft);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.card h3{
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
}
.card p{ margin: 0; color: var(--text-soft); font-size: 13.5px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.two-col{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
}

.list{
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 14px;
}
.list li{ margin: 6px 0; }
.list li::marker{ color: var(--accent); }

/* ================== Demo section ================== */
.demo{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  align-items: start;
}
.demo-controls h3{ margin: 0 0 10px; font-size: 15px; }
.form-row{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
.label{
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
}
.demo select{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
  font-family: inherit;
  font-size: 13.5px;
}
.demo select:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}
.demo select option{ background: var(--surface-solid); color: var(--text); }
.demo-preview{ display: grid; gap: 14px; }
.demo-page{ padding: 16px; }

#demo-tooltip{
  position: absolute;
  max-width: 320px;
  background: linear-gradient(180deg, rgba(32, 20, 54, 0.96), rgba(22, 14, 38, 0.96));
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
  z-index: 999999;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 14px 40px rgba(10, 2, 28, 0.7),
    0 0 0 1px rgba(222, 51, 255, 0.35),
    0 8px 24px rgba(222, 51, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: tipIn .14s ease-out;
}
@keyframes tipIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}
.dots{ display:flex; gap: 6px; }
.dots span{
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.url{ font-weight: 700; color: var(--muted); }
.page-body{
  padding-top: 12px;
  display: grid;
  gap: 10px;
}
.para{
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
}

.st-wordwrap{ display: inline; }
.smart-soft,
.smart-hard{
  border-bottom: 2px solid rgba(222, 51, 255, 0.55);
  border-radius: 0;
}
.smart-hard{ border-bottom-color: rgba(240, 168, 255, 0.75); }
[data-st-token-tr]{
  margin-left: 2px;
  font-size: 0.84em;
  opacity: 0.85;
  color: var(--accent-hi);
  font-weight: 600;
}
[data-st-token-tr].loading{
  opacity: 0.45;
  transform: translateY(1px);
}
[data-st-token-tr].filled{
  opacity: 0.92;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}
.smart-soft[data-st-token-tr],
.smart-hard[data-st-token-tr]{
  border: 0;
  background: transparent;
  padding: 0;
}
.bilingual{
  border-top: 1px dashed var(--border-soft);
  padding-top: 10px;
  display: none;
}
.bilingual-label{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 6px;
}
.bilingual-text{ color: var(--text); }
.legend{
  font-size: 12px;
  color: var(--muted);
}

/* ================== Footer ================== */
.footer{
  padding: 46px 0 30px;
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}
.foot-links{ display:flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.foot-links a{ color: var(--text-soft); }
.foot-links a:hover{ color: var(--accent-hi); }
.fine{ color: var(--muted-2); font-size: 12px; margin-top: 10px; }

/* ================== Static prose (privacy/support pages) ================== */
.page{ padding: 30px 0 10px; }
.prose{
  border: 1px solid var(--border-soft);
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.prose h1{ margin: 0 0 12px; font-size: 26px; letter-spacing: -0.02em; }
.prose h2{ margin: 20px 0 8px; font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.prose p, .prose li{ color: var(--text-soft); font-size: 14px; line-height: 1.7; }
.prose code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1px 6px;
  color: var(--accent-hi);
}
.prose a{ color: var(--accent-hi); }

/* ================== Responsive ================== */
@media (max-width: 980px){
  .hero{ padding: 48px 0 32px; }
  .hero-inner{ grid-template-columns: 1fr; gap: 32px; }
  .hero-visual{ order: 2; }
  .headline{ font-size: clamp(34px, 7vw, 48px); }
  .mockup{ transform: rotate(0); }
  .mockup-float{ right: 12px; top: 18%; }

  .bento{ grid-template-columns: repeat(2, 1fr); }
  .b-cefr     { grid-column: span 2; grid-row: span 1; min-height: 320px; }
  .b-bilingual,
  .b-wordbook,
  .b-select,
  .b-floating,
  .b-modes    { grid-column: span 1; }

  .two-col{ grid-template-columns: 1fr; }
  .demo{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .container{ padding: 18px 16px; }
  .cta{ flex-direction: column; align-items: stretch; }
  .btn{ justify-content: center; }
  .bento{ grid-template-columns: 1fr; }
  .b-cefr{ grid-column: span 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero-bg .blob,
  .kicker-dot,
  .mockup-float{ animation: none !important; }
  .mockup{ transform: none !important; }
}
