/* ============================================================
   Viking Apps – Nordic Theme
   Color Palette: Deep fjord blues, frost whites, Norse gold
   ============================================================ */

:root {
  --fjord-deep:    #0a1628;
  --fjord-mid:     #0f2240;
  --fjord-light:   #1a3a6b;
  --ice-blue:      #4d9de0;
  --ice-light:     #7ec8e3;
  --frost-white:   #e8f1f8;
  --snow-white:    #f5f9fc;
  --norse-gold:    #c9973e;
  --norse-gold-lt: #f0c060;
  --steel-grey:    #8a9bb5;
  --text-main:     #c5d5e8;
  --text-light:    #e8f1f8;
  --text-muted:    #7a8fa8;
  --rune-red:      #8b2020;
  --card-bg:       rgba(26, 58, 107, 0.35);
  --card-border:   rgba(77, 157, 224, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--fjord-deep);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Background texture ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(77, 157, 224, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(15, 34, 64, 0.6) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234d9de0' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(77, 157, 224, 0.15);
  transition: background 0.3s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
}

.nav-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--frost-white);
  letter-spacing: 0.04em;
}

.nav-brand-name span {
  color: var(--ice-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--steel-grey);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ice-light);
}

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--ice-blue), var(--fjord-light));
  color: var(--frost-white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links .nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg-rune {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  max-width: 700px;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  font-size: clamp(300px, 40vw, 600px);
  line-height: 1;
  color: var(--ice-blue);
  font-weight: 900;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 151, 62, 0.12);
  border: 1px solid rgba(201, 151, 62, 0.3);
  color: var(--norse-gold-lt);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--frost-white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--ice-blue), var(--ice-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ice-blue), #2a78c0);
  color: #fff;
  box-shadow: 0 4px 20px rgba(77, 157, 224, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(77, 157, 224, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--ice-light);
  border: 1px solid rgba(77, 157, 224, 0.5);
}

.btn-outline:hover {
  background: rgba(77, 157, 224, 0.1);
  border-color: var(--ice-blue);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--norse-gold), #a87730);
  color: var(--fjord-deep);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(201, 151, 62, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 151, 62, 0.45);
}

/* ── Hero Phone Mockup ──────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-phone-wrap {
  position: relative;
  width: 260px;
}

.hero-phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse, rgba(77, 157, 224, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

.hero-phone {
  position: relative;
  width: 100%;
  background: var(--fjord-mid);
  border-radius: 36px;
  border: 2px solid rgba(77, 157, 224, 0.4);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.hero-phone img {
  width: 100%;
  display: block;
}

/* ── Section Commons ────────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ice-blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--frost-white);
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.section-title .accent {
  background: linear-gradient(135deg, var(--ice-blue), var(--ice-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 550px;
  line-height: 1.75;
}

/* ── Divider ────────────────────────────────────────────── */
.rune-divider {
  text-align: center;
  color: rgba(77, 157, 224, 0.2);
  font-size: 1.5rem;
  letter-spacing: 0.8em;
  margin: 0;
  padding: 0.5rem 0;
  user-select: none;
}

/* ── Features ───────────────────────────────────────────── */
.features {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 34, 64, 0.4) 50%, transparent 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(77, 157, 224, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(77, 157, 224, 0.2), rgba(26, 58, 107, 0.3));
  border: 1px solid rgba(77, 157, 224, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--frost-white);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Screenshots ────────────────────────────────────────── */
.screenshots {
  padding: 5rem 0;
}

.screenshots .section-inner {
  padding-top: 0;
  padding-bottom: 0;
}

.screenshots-header {
  text-align: center;
  padding: 5rem 2rem 3rem;
}

.screenshots-header .section-desc {
  margin: 0 auto;
}

.screenshots-track-wrap {
  overflow: hidden;
  position: relative;
  padding: 1rem 0 2rem;
}

.screenshots-track-wrap::before,
.screenshots-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.screenshots-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--fjord-deep), transparent);
}

.screenshots-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--fjord-deep), transparent);
}

.screenshots-track {
  display: flex;
  gap: 1.25rem;
  padding: 0.5rem 2rem 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 157, 224, 0.3) transparent;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshots-track::-webkit-scrollbar { height: 4px; }
.screenshots-track::-webkit-scrollbar-track { background: transparent; }
.screenshots-track::-webkit-scrollbar-thumb { background: rgba(77, 157, 224, 0.3); border-radius: 2px; }

.screenshot-item {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: center;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(77, 157, 224, 0.2);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--fjord-mid);
}

.screenshot-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(77, 157, 224, 0.6);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.screenshot-item img {
  width: 100%;
  display: block;
  height: 400px;
  object-fit: cover;
  object-position: top;
}

/* ── Interval Types ─────────────────────────────────────── */
.intervals {
  background: linear-gradient(180deg, transparent, rgba(15, 34, 64, 0.5), transparent);
}

.intervals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.interval-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.interval-card:hover {
  border-color: var(--ice-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

.interval-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.interval-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--frost-white);
  margin-bottom: 0.4rem;
}

.interval-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.5), rgba(77, 157, 224, 0.1));
  border-radius: 24px;
  border: 1px solid rgba(77, 157, 224, 0.2);
  margin-left: 2rem;
  margin-right: 2rem;
}

.cta-banner-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--frost-white);
  margin-bottom: 0.75rem;
}

.cta-banner-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--frost-white);
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.store-badge:hover {
  background: rgba(77, 157, 224, 0.15);
  border-color: rgba(77, 157, 224, 0.4);
  transform: translateY(-2px);
}

.store-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-badge-text small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-badge-text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(77, 157, 224, 0.1);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--frost-white);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.65;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: right;
}

.footer-links a {
  color: var(--steel-grey);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--ice-light);
}

/* ── Privacy Page ───────────────────────────────────────── */
.privacy-hero {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 34, 64, 0.5) 0%, transparent 100%);
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.privacy-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--frost-white);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(77, 157, 224, 0.15);
}

.privacy-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ice-light);
  margin: 1.5rem 0 0.5rem;
}

.privacy-content p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.privacy-content ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.privacy-content ul li {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.75;
  margin-bottom: 0.35rem;
}

.privacy-content a {
  color: var(--ice-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-content a:hover {
  color: var(--ice-light);
}

.privacy-meta {
  display: inline-block;
  background: rgba(77, 157, 224, 0.1);
  border: 1px solid rgba(77, 157, 224, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--steel-grey);
  margin-top: 2rem;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    justify-content: center;
    order: -1;
  }

  .hero-phone-wrap {
    width: 200px;
  }

  .hero-desc {
    margin: 0 auto 2rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    text-align: center;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .cta-banner-inner {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 0.65rem 1.25rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .section-inner {
    padding: 3.5rem 1.25rem;
  }

  .screenshot-item {
    width: 155px;
  }

  .screenshot-item img {
    height: 310px;
  }
}
