/*
Theme Name: LinguaFix One Page
Theme URI: https://example.com/linguafix
Author: LinguaFix Team
Author URI: https://example.com
Description: A clean, modern, premium one-page WordPress theme for an AI-powered multilingual spell and grammar corrector.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linguafix
Tags: one-column, custom-background, custom-logo, custom-menu, featured-images, translation-ready

LinguaFix One Page Theme - A premium SaaS-style one-page theme.
*/

/* ============================================================
   CSS RESET & BASE
   ============================================================ */

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

:root {
  /* Brand colors */
  --color-primary: #1e2a4a;
  --color-primary-light: #2d3f6e;
  --color-accent: #d4940a;
  --color-accent-light: #f0b429;

  /* Surfaces */
  --color-bg: #faf8f5;
  --color-bg-card: #ffffff;
  --color-bg-dark: #1a1a2e;
  --color-bg-dark-card: #222240;

  /* Text */
  --color-text: #1e2a4a;
  --color-text-muted: #6b7280;
  --color-text-light: #f0ebe3;

  /* Feedback */
  --color-error: #dc2626;
  --color-error-bg: #fef2f2;
  --color-warning: #d4940a;
  --color-warning-bg: #fefce8;
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-info: #2563eb;
  --color-info-bg: #eff6ff;

  /* Layout */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 2px 8px -2px rgba(30, 42, 74, 0.06), 0 4px 16px -4px rgba(30, 42, 74, 0.08);
  --shadow-elevated: 0 4px 16px -4px rgba(30, 42, 74, 0.1), 0 8px 32px -8px rgba(30, 42, 74, 0.12);
  --max-width: 1200px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section--dark p {
  color: rgba(240, 235, 227, 0.7);
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--color-primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

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

.btn--accent:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid rgba(30, 42, 74, 0.15);
}

.btn--ghost:hover {
  background: var(--color-bg-card);
  color: var(--color-text);
  border-color: rgba(30, 42, 74, 0.25);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 42, 74, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.site-brand__icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.125rem;
}

.site-brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.site-brand__tagline {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  margin-top: -2px;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-text);
  background: rgba(30, 42, 74, 0.04);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(30, 42, 74, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    border-bottom: 1px solid rgba(30, 42, 74, 0.08);
    box-shadow: var(--shadow-elevated);
    padding: 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    padding: 0.75rem 1rem;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 1.25rem;
}

.hero h1 span {
  color: var(--color-accent);
}

.hero p {
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__languages {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.hero__lang-tag {
  padding: 0.375rem 0.75rem;
  background: var(--color-bg-card);
  border: 1px solid rgba(30, 42, 74, 0.08);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.features {
  background: var(--color-bg-card);
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section__heading {
  margin-bottom: 1rem;
}

.section__subheading {
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.0625rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid rgba(30, 42, 74, 0.06);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: all 0.3s ease;
}

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

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card__icon--spell { background: var(--color-error-bg); }
.feature-card__icon--grammar { background: var(--color-warning-bg); }
.feature-card__icon--tone { background: var(--color-info-bg); }
.feature-card__icon--improve { background: var(--color-success-bg); }
.feature-card__icon--lang { background: #f3e8ff; }
.feature-card__icon--export { background: #fce7f3; }

.feature-card h3 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ============================================================
   DEMO / EDITOR SECTION
   ============================================================ */

.demo {
  padding: 5rem 0;
}

.demo__editor-wrap {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 42, 74, 0.1);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.demo__editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(30, 42, 74, 0.08);
  flex-wrap: wrap;
}

.demo__editor-textarea {
  width: 100%;
  min-height: 200px;
  padding: 1.5rem;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg-card);
  resize: vertical;
}

.demo__editor-textarea::placeholder {
  color: var(--color-text-muted);
}

.demo__editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--color-bg);
  border-top: 1px solid rgba(30, 42, 74, 0.08);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo__stats {
  display: flex;
  gap: 1rem;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.steps {
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 2rem;
  padding-left: 4.5rem;
  border: 1px solid rgba(30, 42, 74, 0.06);
  border-radius: var(--radius);
  background: var(--color-bg-card);
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.5rem;
  top: 2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  border-radius: 0;
}

.cta h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(30, 42, 74, 0.08);
  text-align: center;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.site-footer a {
  color: var(--color-accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero {
    padding: 4rem 0 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
