/* Vocabulex - Light Minimal Design System */

:root {
  /* Colors */
  --color-bg: #F5F5F5;
  --color-bg-elevated: #EBEBEB;
  --color-bg-subtle: #E5E5E5;
  --color-text: #0A0A0A;
  --color-text-secondary: #5A5A5A;
  --color-text-muted: #999999;
  --color-accent: #599895;
  --color-accent-light: #2E6E6C;
  --color-accent-lighter: #1A4F4E;
  --color-accent-hover: #4A8280;
  --color-border: #D0D0D0;
  --color-success: #3A7A78;
  --color-error: #DC2626;

  /* Typography */
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 680px;

  /* Animation */
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: var(--font-weight-medium);
}

p {
  color: var(--color-text-secondary);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  min-height: 52px;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
}

.btn--white {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.btn--white:hover {
  background-color: #2A2A2A;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-text);
}

.btn.loading {
  pointer-events: none;
  opacity: 0.6;
}

.btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background-color: rgba(245, 245, 245, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transform: translateY(-100%);
  transition: all var(--duration-normal) var(--easing);
  pointer-events: none;
}

.header.scrolled {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  border-bottom-color: var(--color-border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo svg {
  height: 52px;
  width: auto;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  min-height: 44px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.hero__logo {
  display: inline-block;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeIn var(--duration-slow) var(--easing) forwards;
}

.hero__logo svg {
  height: 100px;
  width: auto;
}

.hero__headline {
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeInUp var(--duration-slow) var(--easing) 0.1s forwards;
}

.hero__headline-accent {
  background: linear-gradient(
    90deg,
    var(--color-accent-lighter),
    var(--color-accent),
    #9ECFCD,
    var(--color-accent),
    var(--color-accent-lighter)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 6s linear infinite;
}

.hero__subheadline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
  color: var(--color-text-secondary);
  opacity: 0;
  animation: fadeInUp var(--duration-slow) var(--easing) 0.2s forwards;
}

.hero__cta {
  margin-top: var(--space-xs);
}

.hero__app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  color: var(--color-text);
  padding: 0.55rem 1.1rem 0.55rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 0.75rem;
}


.hero__app-store-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.hero__app-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.hero__app-store-small {
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.hero__app-store-large {
  font-size: 1.05rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
}

.hero__languages {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
  opacity: 0;
  animation: fadeInUp var(--duration-slow) var(--easing) 0.5s forwards;
}

.hero__languages-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.hero__languages-list {
  display: inline-flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-lg);
}


.hero__lang {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: all var(--duration-fast) ease;
}

.hero__lang:hover {
  color: var(--color-accent-light);
  border-color: var(--color-accent);
}

.hero__lang--more {
  border-style: dashed;
  color: var(--color-text-muted);
  font-style: italic;
}

.hero__lang--more:hover {
  color: var(--color-text-muted);
  border-color: var(--color-text-muted);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gradient-flow {
  to { background-position: 200% center; }
}

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

/* Form */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 480px) {
  .form-group {
    flex-direction: row;
  }
}

.form-group input[type="email"] {
  flex: 1;
  padding: 1rem 1.25rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  transition: border-color var(--duration-fast) ease;
  min-height: 52px;
}

.form-group input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.form-message {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  min-height: 1.25rem;
  text-align: center;
}

.form-message.success {
  color: var(--color-success);
}

.form-message.error {
  color: var(--color-error);
}

/* EmailOctopus centering */
.eo-center {
  display: flex;
  justify-content: center;
  color: #0A0A0A;
}

.eo-center input::placeholder {
  color: #999999 !important;
}

/* Problem Section */
.problem {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
}

.problem__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.problem__label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.problem__title {
  max-width: 600px;
  margin: 0 auto;
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .problem__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.problem__item {
  text-align: center;
  padding: var(--space-lg) 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--easing);
}

.problem__item.visible {
  opacity: 1;
  transform: translateY(0);
}

.problem__item:nth-child(2) { transition-delay: 0.1s; }
.problem__item:nth-child(3) { transition-delay: 0.2s; }

.problem__number {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: rgba(89, 152, 149, 0.35);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.problem__text {
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* Founder Section */
.founder {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
}

.founder__card {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.founder__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.founder__quote {
  margin: 0;
}

.founder__quote p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.founder__cite {
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  font-style: normal;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .founder__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Solution Section */
.solution {
  padding: var(--space-3xl) 0;
  background-color: var(--color-bg-subtle);
}

.solution__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.solution__label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.solution__list {
  max-width: 700px;
  margin: 0 auto;
}

.solution__item {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--easing);
}

.solution__item:last-child {
  border-bottom: none;
}

.solution__item.visible {
  opacity: 1;
  transform: translateY(0);
}

.solution__item:nth-child(2) { transition-delay: 0.1s; }
.solution__item:nth-child(3) { transition-delay: 0.2s; }

.solution__item h3 {
  margin-bottom: var(--space-sm);
  transition: color var(--duration-fast) ease;
}

.solution__item:hover h3 {
  color: var(--color-accent-light);
}

.solution__item p {
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* How It Works */
.how-it-works {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.how-it-works__label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.step {
  position: relative;
  padding: var(--space-xl);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  transition: border-color var(--duration-fast) ease;
}

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

.step__number {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.step h3 {
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Final CTA */
.final-cta {
  padding: var(--space-3xl) 0;
  text-align: center;
  background-color: var(--color-accent);
  color: #FFFFFF;
}

.final-cta h2 {
  margin-bottom: var(--space-md);
}

.final-cta__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}

.final-cta .form-group {
  max-width: 440px;
  margin: 0 auto var(--space-md);
}

.final-cta .form-group input[type="email"] {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-text);
}

.final-cta .form-group input[type="email"]:focus {
  border-color: var(--color-text);
}

.final-cta .form-group input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.final-cta .btn--primary {
  background-color: #FFFFFF;
  color: var(--color-accent);
}

.final-cta .btn--primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.final-cta__note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.final-cta .form-message.success {
  color: var(--color-success);
}

.final-cta .form-message.error {
  color: #DC2626;
}

/* Footer */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

@media (min-width: 640px) {
  .footer__content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__logo svg {
  height: 48px;
  width: auto;
  opacity: 0.5;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer-contact {
  display: none;
}

@media (max-width: 479px) {
  .nav-contact {
    display: none;
  }

  .footer-contact {
    display: inline;
  }
}

.footer__links a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) ease;
  padding: var(--space-xs);
}

.footer__links a:hover {
  color: var(--color-accent-light);
}

.footer__links a:focus-visible {
  outline: 1px solid var(--color-text);
  outline-offset: 2px;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
}

/* Contact Page */
.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--space-lg)) 0 var(--space-lg);
  text-align: center;
}

.contact-page .hero__logo {
  margin-bottom: var(--space-xl);
}

.support-hero__headline {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.support-hero__subtitle {
  font-size: 1.125rem;
  max-width: 540px;
  margin: 0 auto var(--space-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 560px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form__field label {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  transition: border-color var(--duration-fast) ease;
  min-height: 52px;
}

.contact-form__field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--color-text-muted);
}

.contact-form .h-captcha,
.contact-form .btn {
  align-self: center;
}

.contact-form .form-message {
  margin-top: 0;
}

/* Legal / Privacy */
.legal-content {
  text-align: left;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: var(--space-xl) 0 var(--space-sm);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  margin: var(--space-lg) 0 var(--space-xs);
}

.legal-content p {
  margin: 0 0 var(--space-sm);
}

.legal-content ul {
  margin: 0 0 var(--space-sm);
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  text-decoration: none;
}

/* 404 */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.not-found__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.not-found__code {
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--color-bg-elevated);
  user-select: none;
}

.not-found__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
  margin: 0;
}

.not-found__body {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 360px;
  margin: 0;
  line-height: 1.6;
}

.not-found__logo {
  display: inline-block;
  margin-bottom: var(--space-sm);
  opacity: 0.85;
  transition: opacity var(--duration-fast) ease;
}

.not-found__logo:hover {
  opacity: 1;
}

/* ─── Floating Language Picker ──────────────────────────────────────────── */
/* Fixed bottom-right pill. Always visible regardless of scroll position.   */
/* Scales to more languages by adding items — no layout changes needed.      */

.lang-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.07em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  user-select: none;
}

.lang-float__current {
  color: var(--color-text);
}

.lang-float__option {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.lang-float__option:hover {
  color: var(--color-accent);
}

.lang-float__sep {
  color: var(--color-border);
  font-size: 0.6rem;
  line-height: 1;
}
