/* ============================================
   MaidCheck Website — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand Palette */
  --brand-50: #f0eeff;
  --brand-100: #ddd9ff;
  --brand-200: #bbb3ff;
  --brand-400: #7c6ef6;
  --brand-500: #6157f6;
  --brand-600: #4d3ed9;
  --brand-700: #3D2B8A;
  --brand-800: #2d1f6b;
  --brand-900: #1a1145;

  /* Accent */
  --accent-400: #34d399;
  --accent-500: #1f9d6a;
  --accent-600: #148a5a;

  /* Neutral */
  --ink: #0f172a;
  --ink-secondary: #475569;
  --ink-muted: #94a3b8;
  --line: #e2e8f0;
  --paper: #ffffff;
  --surface: #f8fafc;
  --soft: #f1f5f9;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.12);
  --shadow-xl: 0 20px 60px rgba(15,23,42,0.16);
  --shadow-brand: 0 8px 32px rgba(97,87,246,0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 300ms;
}

/* ============ 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: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover {
  color: var(--brand-500);
}

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

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}
.nav-links a:hover {
  color: var(--brand-500);
  background: var(--brand-50);
}

.language-select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease);
}
.language-select:hover {
  border-color: var(--brand-400);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 56px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500), var(--accent-500));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  margin: 16px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-desc {
  margin: 12px 0 0;
  color: var(--ink-secondary);
  font-size: 17px;
  max-width: 560px;
  line-height: 1.65;
}

.hero-visual {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(145deg, var(--brand-700), var(--brand-500) 50%, var(--accent-500));
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(52,211,153,0.2) 0%, transparent 50%);
}

.hero-icon-display {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  border-radius: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  animation: floatIcon 6s ease-in-out infinite;
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ============ Buttons ============ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: white;
  box-shadow: var(--shadow-brand);
}
.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(97,87,246,0.35);
}

.button.secondary {
  color: var(--brand-600);
  background: var(--paper);
  border-color: var(--brand-200);
}
.button.secondary:hover {
  background: var(--brand-50);
  border-color: var(--brand-400);
}

.button.store {
  background: #000;
  color: #fff;
  border-radius: var(--radius-sm);
  min-height: 52px;
  padding: 0 20px;
  font-size: 14px;
}
.button.store:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============ Section Headings ============ */

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--ink-secondary);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ Features ============ */

.features {
  padding: 80px 0;
}

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

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-400));
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.feature-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ Pricing ============ */

.pricing {
  padding: 80px 0;
  background: var(--soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.price-card.featured {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-brand);
  transform: scale(1.03);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.price-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

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

.price-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

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

/* ============ FAQ ============ */

.faq {
  padding: 80px 0;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  gap: 16px;
}

.faq-q::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 20px;
}

/* ============ CTA Banner ============ */

.cta-banner {
  padding: 80px 0;
  text-align: center;
}

.cta-banner-inner {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500), var(--accent-500));
  border-radius: var(--radius-2xl);
  padding: 64px 40px;
  color: white;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(52,211,153,0.15) 0%, transparent 50%);
}

.cta-banner-inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.cta-banner-inner p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner-inner .cta-row {
  justify-content: center;
  position: relative;
}

/* ============ Document Pages ============ */

.doc {
  padding: 60px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

.doc h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.doc .updated {
  color: var(--ink-muted);
  margin: 12px 0 40px;
  font-size: 14px;
}

.doc section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}

.doc section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--brand-700);
}

.doc section p {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.7;
}

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

.site-footer {
  background: var(--ink);
  color: var(--ink-muted);
  margin-top: 0;
  border: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand {
  color: white;
  font-size: 18px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--ink-muted);
  font-size: 14px;
  padding: 4px 0;
  transition: color var(--duration) var(--ease);
}
.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  gap: 16px;
}

.footer-bottom a {
  color: var(--ink-muted);
}
.footer-bottom a:hover {
  color: white;
}

/* ============ Responsive ============ */

@media (max-width: 900px) {
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
  .price-card.featured {
    transform: none;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 780px) {
  .nav {
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0;
    gap: 32px;
  }
  .hero-visual {
    min-height: 260px;
    border-radius: var(--radius-xl);
  }
  .hero-icon-display {
    width: 120px;
    height: 120px;
    border-radius: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
