@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

:root {
  --bg:        #f4f1eb;
  --bg-warm:   #ede9e0;
  --bg-card:   #ffffff;
  --bg-subtle: #f9f7f3;
  --fg:        #1a1612;
  --fg-muted:  #6b6358;
  --fg-light:  #9e9388;
  --accent:    #c85a1a;
  --accent-soft: rgba(200, 90, 26, 0.09);
  --accent-glow: rgba(200, 90, 26, 0.18);
  --success:   #1a7a5e;
  --danger:    #b53c2e;
  --border:    rgba(26, 22, 18, 0.1);
  --border-accent: rgba(200, 90, 26, 0.2);
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 2px 16px rgba(26, 22, 18, 0.07);
  --shadow-md: 0 4px 32px rgba(26, 22, 18, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(200, 90, 26, 0.25);
}
.btn-primary:hover {
  background: #b34d10;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200, 90, 26, 0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-large { padding: 16px 40px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- HERO ---- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(160deg, #faf7f2 0%, var(--bg) 60%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--fg);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-cta-note {
  font-size: 0.84rem;
  color: var(--fg-light);
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat { display: flex; flex-direction: column; }

.hero-stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 0.83rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* ---- HOW IT WORKS ---- */
.how {
  padding: 100px 0;
  background: var(--bg);
}

.how h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  max-width: 520px;
  margin-bottom: 56px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.how-step {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.how-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.how-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.how-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.how-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- CHAT DEMO ---- */
.chat-demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  max-width: 680px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-bubble {
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  font-size: 0.97rem;
  line-height: 1.6;
  max-width: 90%;
}

.chat-bubble.user {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  align-self: flex-end;
  color: var(--fg-muted);
}

.chat-bubble.koveri {
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  color: var(--fg);
  align-self: flex-start;
}

/* ---- INDEPENDENCE ---- */
.independence {
  padding: 80px 0;
  background: var(--bg-warm);
}

.independence-inner {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 56px;
}

.independence-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  border: 1px solid var(--border-accent);
}

.independence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.independence-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.indep-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.independence-item strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.independence-item p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- PROBLEM ---- */
.problem {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.problem h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  max-width: 600px;
  margin-bottom: 48px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow);
}

.problem-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.problem-card .icon { font-size: 1.7rem; margin-bottom: 16px; display: block; }
.problem-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; }
.problem-card p { color: var(--fg-muted); font-size: 0.9rem; line-height: 1.65; }

/* ---- FEATURES ---- */
.features {
  padding: 100px 0;
  background: var(--bg-warm);
}

.features h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 56px;
  max-width: 560px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(200, 90, 26, 0.12);
  position: absolute;
  top: 20px;
  right: 28px;
  line-height: 1;
}

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--fg-muted); font-size: 0.9rem; line-height: 1.65; }

.feature-card .tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid var(--border-accent);
}

.translation-demo {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid var(--border);
}

.translation-before,
.translation-after {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
}

.translation-before {
  background: rgba(181, 60, 46, 0.05);
  border-left: 3px solid var(--danger);
  color: var(--fg-muted);
  margin-bottom: 12px;
  font-style: italic;
}

.translation-arrow { text-align: center; color: var(--accent); font-size: 1.2rem; margin-bottom: 12px; }

.translation-after {
  background: rgba(26, 122, 94, 0.06);
  border-left: 3px solid var(--success);
  color: var(--fg);
}

/* ---- PRIVACY (dark block) ---- */
.privacy {
  padding: 100px 0;
  background: var(--bg);
}

.privacy-inner {
  background: var(--fg);
  border-radius: var(--radius);
  padding: 64px 64px 48px;
  color: var(--bg);
}

.privacy-header { margin-bottom: 48px; }

.privacy-inner .section-label { color: rgba(244, 241, 235, 0.55); }

.privacy-header h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--bg);
}

.privacy-intro {
  font-size: 1.05rem;
  color: rgba(244, 241, 235, 0.7);
  max-width: 560px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.privacy-item {
  border-top: 1px solid rgba(244, 241, 235, 0.12);
  padding-top: 24px;
}

.privacy-icon { font-size: 1.4rem; margin-bottom: 14px; display: block; }
.privacy-item h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--bg); }
.privacy-item p { font-size: 0.87rem; color: rgba(244, 241, 235, 0.65); line-height: 1.6; }

.privacy-cta {
  border-top: 1px solid rgba(244, 241, 235, 0.12);
  padding-top: 32px;
}

.privacy-link {
  color: rgba(244, 241, 235, 0.75);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.privacy-link:hover { color: var(--bg); }

/* ---- CLOSING ---- */
.closing {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  background: var(--bg-warm);
}

.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.closing .container { position: relative; z-index: 1; }

.closing h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.closing-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.closing-note { font-size: 0.84rem; color: var(--fg-light); }

/* ---- FOOTER ---- */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg);
}

footer p { color: var(--fg-muted); font-size: 0.83rem; }
.footer-links { margin-top: 10px; }

footer a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
footer a:hover { opacity: 0.75; }

/* ---- SIGNUP MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 18, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--border);
  padding: 48px 44px;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s;
}

.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--fg-light);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--fg); }

.modal-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.modal-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.modal-sub { font-size: 0.93rem; color: var(--fg-muted); margin-bottom: 28px; line-height: 1.6; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.97rem;
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input::placeholder { color: var(--fg-light); }

.form-error {
  font-size: 0.86rem;
  color: var(--danger);
  margin-bottom: 12px;
  min-height: 18px;
}

.modal-legal {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--fg-light);
  line-height: 1.55;
}

.modal-legal a { color: var(--accent); text-decoration: underline; }

.signup-success { text-align: center; padding: 20px 0; }

.signup-success-icon {
  width: 56px;
  height: 56px;
  background: rgba(26, 122, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--success);
  margin: 0 auto 20px;
}

.signup-success h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.signup-success p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 80px 0 60px; }
  .hero-stats { gap: 32px; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-card.wide { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .independence-inner { padding: 36px 28px; }
  .privacy-inner { padding: 40px 28px; }
  .modal-box { padding: 36px 28px; }
  .chat-demo { padding: 24px 22px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .hero h1 { font-size: 2.2rem; }
  .feature-card { padding: 28px 24px; }
  .independence-grid { grid-template-columns: 1fr; }
}
