/* ==========================================================================
   OnlySaver — Design Tokens
   ========================================================================== */

:root {
  /* Color */
  --bg: #0d0b1e;
  --bg-elev: #14112a;
  --surface: #1b1738;
  --surface-hover: #221c47;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #f6f4ff;
  --text-muted: #aca4cf;
  --text-faint: #7b7398;

  --violet: #7c3aed;
  --violet-bright: #9d5cff;
  --violet-soft: #c9adff;
  --cyan: #2dd4ee;

  --gradient-hero: radial-gradient(120% 140% at 15% -10%, #3a1f78 0%, #17123a 45%, #0d0b1e 100%);
  --gradient-accent: linear-gradient(120deg, #9d5cff 0%, #2dd4ee 100%);
  --gradient-tag: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  --gradient-border: linear-gradient(135deg, rgba(157, 92, 255, 0.6), rgba(45, 212, 238, 0.25));

  --shadow-sm: 0 2px 10px rgba(4, 3, 16, 0.35);
  --shadow-md: 0 12px 32px rgba(4, 3, 16, 0.45);
  --shadow-lg: 0 24px 64px rgba(4, 3, 16, 0.55);
  --shadow-glow: 0 0 0 1px rgba(157, 92, 255, 0.25), 0 18px 44px rgba(124, 58, 237, 0.28);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --nav-height: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

/* Background texture shared by dark sections */
.grain-bg {
  position: relative;
}
.grain-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
}

/* ==========================================================================
   Eyebrow / labels
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-soft);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 10px rgba(157, 92, 255, 0.8);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 14px;
  color: var(--text);
}
.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 16.5px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gradient-accent);
  color: #0d0b1e;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(157, 92, 255, 0.4), 0 22px 50px rgba(124, 58, 237, 0.4); transform: translateY(-2px); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(157, 92, 255, 0.5); transform: translateY(-2px); }

.btn-ghost {
  color: var(--violet-soft);
  padding: 10px 4px;
  border-bottom: 1px solid transparent;
}
.btn-ghost:hover { border-color: var(--violet-soft); }

.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(13, 11, 30, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d0b1e;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--gradient-accent);
}

.nav-right { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right .btn-primary.desktop-only { display: none; }

  .mobile-panel {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 99;
  }
  .mobile-panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-panel a {
    padding: 13px 4px;
    font-size: 15.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
  }
  .mobile-panel a.active { color: var(--violet-soft); }
  .mobile-panel .btn { margin-top: 14px; }
}
@media (min-width: 881px) {
  .mobile-panel { display: none; }
}

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

.hero {
  padding: 88px 0 70px;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.06;
  margin-top: 18px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
}

.discount-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 18px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--violet-soft);
  box-shadow: var(--shadow-sm);
}
.discount-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-disclaimer {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--text-faint);
  max-width: 480px;
  line-height: 1.6;
}

/* Hero art: price-tag SVG composition */
.hero-art { position: relative; }
.hero-art .glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 50% 40%, rgba(157, 92, 255, 0.35), transparent 65%);
  filter: blur(10px);
  z-index: 0;
}
.hero-art svg { position: relative; z-index: 1; }

/* ==========================================================================
   Tag card (signature component) — used for offer/pricing cards
   ========================================================================== */

.tag-card {
  --notch: 26px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 34px 30px 30px;
  clip-path: polygon(
    0 0, calc(100% - var(--notch)) 0, 100% var(--notch),
    100% 100%, 0 100%
  );
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.tag-card::before {
  content: "";
  position: absolute;
  top: 13px; right: 13px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
}
.tag-card:hover {
  transform: translateY(-6px);
  border-color: rgba(157, 92, 255, 0.45);
  background: var(--surface-hover);
}
.tag-card.featured {
  border-color: rgba(157, 92, 255, 0.55);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.14), var(--surface) 55%);
  box-shadow: var(--shadow-glow);
}

.tag-card .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(45, 212, 238, 0.1);
  border: 1px solid rgba(45, 212, 238, 0.3);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 16px;
}
.tag-card h3 { font-size: 22px; color: var(--text); }
.tag-card .price-note {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}
.tag-card .specs {
  margin: 22px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.tag-card .specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.tag-card .specs svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--violet-bright); }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px) { .offer-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

.offer-note {
  margin-top: 36px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

/* ==========================================================================
   Feature grid ("Why use Hostinger")
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  padding: 26px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: rgba(157, 92, 255, 0.4); transform: translateY(-4px); }
.feature-card .icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--violet-bright);
  margin-bottom: 18px;
}
.feature-card .icon svg { width: 21px; height: 21px; }
.feature-card h3 { font-size: 16.5px; color: var(--text); }
.feature-card p { margin-top: 8px; font-size: 14px; color: var(--text-muted); }

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  position: relative;
}
.step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.step h3 { margin-top: 14px; font-size: 18px; color: var(--text); }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--text-muted); }
.step .arrow {
  position: absolute;
  right: -34px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}
@media (max-width: 820px) { .step .arrow { display: none; } }

.steps-cta { margin-top: 40px; display: flex; justify-content: center; }

/* ==========================================================================
   Why OnlySaver / About panel
   ========================================================================== */

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px;
}
@media (max-width: 640px) { .panel { padding: 32px 24px; } }

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) { .panel-grid { grid-template-columns: 1fr; } }

.notice-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.notice-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.notice-list svg { width: 17px; height: 17px; color: var(--cyan); flex-shrink: 0; margin-top: 1px; }

/* ==========================================================================
   Simple content pages (About/Contact/Legal)
   ========================================================================== */

.page-hero {
  padding: 64px 0 40px;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 14px; }
.page-hero p { margin-top: 14px; color: var(--text-muted); max-width: 620px; font-size: 16.5px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 40px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 14px; color: var(--text-muted); font-size: 15.5px; }
.prose ul { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { color: var(--text-muted); font-size: 15.5px; padding-left: 22px; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet-bright);
}

.contact-card {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.contact-card .icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(45, 212, 238, 0.12);
  border: 1px solid rgba(45, 212, 238, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.contact-card a { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text); }
.contact-card a:hover { color: var(--violet-soft); }

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { margin-top: 14px; color: var(--text-muted); font-size: 14px; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--text-muted); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--violet-soft); }

.footer-bottom {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p { font-size: 13px; color: var(--text-faint); }
.footer-disclosure {
  font-size: 12.5px;
  color: var(--text-faint);
  max-width: 640px;
  line-height: 1.6;
  margin-top: 18px;
}

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Fade-in on load — pure CSS, no JS or scroll-position dependency, so
   content is never at risk of staying hidden. */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: revealUp 0.7s ease both; }
.offer-grid .reveal:nth-child(2) { animation-delay: 0.08s; }
.offer-grid .reveal:nth-child(3) { animation-delay: 0.16s; }
.feature-grid .reveal:nth-child(2) { animation-delay: 0.05s; }
.feature-grid .reveal:nth-child(3) { animation-delay: 0.1s; }
.feature-grid .reveal:nth-child(4) { animation-delay: 0.15s; }
.feature-grid .reveal:nth-child(5) { animation-delay: 0.2s; }
.feature-grid .reveal:nth-child(6) { animation-delay: 0.25s; }
.feature-grid .reveal:nth-child(7) { animation-delay: 0.3s; }
.feature-grid .reveal:nth-child(8) { animation-delay: 0.35s; }
.steps .reveal:nth-child(2) { animation-delay: 0.08s; }
.steps .reveal:nth-child(3) { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}
