/* ============================================
   Gryter Design System — Website Stylesheet
   ============================================ */

:root {
  /* Core Backgrounds */
  --bg-app: #0B1220;
  --bg-surface: #111B2E;
  --bg-surface-secondary: #18243A;
  --bg-divider: #24324C;

  /* Accent */
  --accent: #2F6BFF;
  --accent-pressed: #2457D6;
  --accent-glow: rgba(47, 107, 255, 0.15);

  /* Text */
  --text-primary: #F2F6FF;
  --text-secondary: #B8C4DA;
  --text-muted: #7E8BA6;
  --text-disabled: #55627C;

  /* Semantic */
  --success: #2DD4A3;
  --warning: #FBBF24;
  --error: #F87171;
  --info: #60A5FA;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --content-max: 780px;
  --content-wide: 960px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: #5B8FFF;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

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

p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Layout
   ============================================ */

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

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

section {
  padding: 64px 0;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--bg-divider);
  background: var(--bg-app);
  position: relative;
  z-index: 10;
}

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

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.site-header__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-header__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-header__nav {
  display: flex;
  gap: 24px;
}

.site-header__nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-header__nav a:hover {
  color: var(--text-primary);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero__logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 24px;
}

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.hero__badge {
  height: 48px;
  transition: opacity 0.15s ease;
}

.hero__badge:hover {
  opacity: 0.85;
}

/* ============================================
   Features Section (What Gryter Does)
   ============================================ */

.features {
  border-top: 1px solid var(--bg-divider);
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-divider);
  border-radius: var(--radius-md);
  padding: 24px;
}

.feature-card__icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
  color: var(--accent);
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works {
  border-top: 1px solid var(--bg-divider);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__content {
  padding-top: 4px;
}

.step__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================================
   Trust Section (Privacy & Security)
   ============================================ */

.trust {
  border-top: 1px solid var(--bg-divider);
}

.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-divider);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.trust-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item__text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   Legal Section
   ============================================ */

.legal-links {
  border-top: 1px solid var(--bg-divider);
  text-align: center;
}

.legal-links__list {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.legal-links__list a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  padding: 12px 24px;
  border: 1px solid var(--bg-divider);
  border-radius: var(--radius-md);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.legal-links__list a:hover {
  background: var(--bg-surface);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
  border-top: 1px solid var(--bg-divider);
  text-align: center;
}

.contact__email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 8px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  border-top: 1px solid var(--bg-divider);
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.site-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer__links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.site-footer__links a:hover {
  color: var(--text-primary);
}

.site-footer__copy {
  font-size: 0.8rem;
  color: var(--text-disabled);
}

/* ============================================
   Legal Page Styles (Privacy / Terms)
   ============================================ */

.legal-page {
  padding: 48px 0 80px;
}

.legal-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-page__effective {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-divider);
}

.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-page p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page ul li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

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

.legal-page .placeholder {
  color: var(--text-muted);
  font-style: italic;
  background: var(--bg-surface);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--bg-divider);
  margin: 8px 0 16px;
}

/* ============================================
   Responsive — Tablet (768px+)
   ============================================ */

@media (min-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 100px 0 80px;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .hero__logo {
    width: 88px;
    height: 88px;
  }

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

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

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

  .step__content {
    padding-top: 0;
  }

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

  section {
    padding: 80px 0;
  }

  .legal-page h1 {
    font-size: 2rem;
  }
}

/* ============================================
   Responsive — Desktop (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  .hero__title {
    font-size: 2.75rem;
  }

  .hero__badge {
    height: 52px;
  }
}
