/* ============================================
   DoDone Routines — Marketing Site
   Aesthetic: Editorial minimalism, quiet luxury
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
  --bg-deep: #0d0d1a;
  --bg-primary: #1a1a2e;
  --bg-elevated: #16213e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --text-primary: #f0f0f5;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #c9a87c;
  --accent-soft: rgba(201, 168, 124, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  --max-width: 1120px;
  --section-gap: 140px;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: var(--section-gap) 0;
  position: relative;
}

/* --- Language Switcher (legacy removed — see #lang-switcher below) --- */

/* --- Header --- */
.header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(22, 33, 62, 0.6) 0%, transparent 70%),
    var(--bg-deep);
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 168, 124, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  animation: fadeUp 1s ease-out;
}

.header-logo-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 48px;
  border-radius: 32px;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, #e8e8f0 55%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: logoFloat 6s ease-in-out infinite;
  overflow: hidden;
}

.header-logo {
  width: 100px;
  height: 66px;
  border: none;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

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

.header-tagline {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.header-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--bg-card);
  transition: border-color 0.3s;
}

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

.badge-icon {
  font-size: 16px;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1s ease-out 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* --- Section Headers --- */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 64px;
}

/* --- Features --- */
.features {
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-card:hover::after {
  opacity: 0.5;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Pricing --- */
.pricing {
  background: var(--bg-deep);
}

.pricing-wrapper {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pricing-card {
  flex: 1;
  max-width: 400px;
  min-width: 300px;
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  transition: border-color 0.3s;
}

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 16px;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 48px;
  margin-bottom: 8px;
  line-height: 1;
}

.pricing-price-detail {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.pricing-cta {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.pricing-cta-primary {
  background: var(--accent);
  color: var(--bg-deep);
}

.pricing-cta-primary:hover {
  opacity: 1;
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(201, 168, 124, 0.25);
}

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

.pricing-cta-secondary:hover {
  border-color: var(--text-secondary);
  opacity: 1;
}

/* --- Download --- */
.download {
  background: var(--bg-primary);
  text-align: center;
}

.download-badge {
  margin: 48px auto 24px;
  transition: transform 0.3s;
}

.download-badge:hover {
  transform: scale(1.05);
}

.download-badge img {
  height: 54px;
  margin: 0 auto;
}

.download-requirements {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* --- Footer --- */
.footer {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-brand strong {
  color: var(--text-primary);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.footer-copyright {
  width: 100%;
  text-align: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }

  .container {
    padding: 0 20px;
  }


  .header-logo {
    width: 88px;
    margin-bottom: 32px;
  }

  .header-badges {
    gap: 12px;
  }

  .badge {
    font-size: 11px;
    padding: 8px 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .pricing-card {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .scroll-hint {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Language Switcher (dropdown)
   ========================================================================== */

#lang-switcher {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 1000;
  background: rgba(22, 33, 62, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 16px 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#lang-switcher .lang-icon {
  font-size: 1.1em;
}

.lang-select {
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  min-width: 120px;
}

.lang-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.lang-select:hover,
.lang-select:focus {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

/* ==========================================================================
   What's New Button
   ========================================================================== */

.whats-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px auto 24px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), #d4a855);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(201, 168, 124, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: btn-pulse 2.5s ease-in-out infinite;
  position: relative;
}

.whats-new-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 30px rgba(201, 168, 124, 0.6);
  animation: none;
}

.whats-new-btn .btn-icon { font-size: 18px; }

@keyframes btn-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(201, 168, 124, 0.4); }
  30% { transform: scale(1.08); box-shadow: 0 8px 35px rgba(201, 168, 124, 0.7); }
  60% { transform: scale(1); box-shadow: 0 4px 20px rgba(201, 168, 124, 0.4); }
}

/* ==========================================================================
   What's New Section
   ========================================================================== */

.whats-new-section {
  padding: 80px 0 40px;
}

.whats-new-section .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.whats-new-section .section-title {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 32px;
  text-align: center;
}

.whats-new-list {
  max-width: 640px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.whats-new-list li {
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.whats-new-list li::before {
  content: '✦';
  color: var(--accent);
  margin-right: 12px;
}

.whats-new-list li:last-child {
  border-bottom: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  #lang-switcher {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
  }
  .lang-select {
    font-size: 0.85em;
    min-width: 100px;
  }
  .whats-new-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
}
