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

:root {
  --deep-ocean: #102A3A;
  --section: #173C4E;
  --card: #224F63;
  --ocean-blue: #2F6D8D;
  --coastal-blue: #4F89B5;
  --mist-blue: #A7C8D8;
  --gold: #E9C46A;
  --gold-soft: #F4E1A6;
  --soft-green: #74A57F;
  --light-sand: #F4F0E6;
  --text: #F4F7F8;
  --text-2: #B9C8D1;
  --radius: 24px;
  --radius-sm: 16px;
  --header-h: 76px;
  --maxw: 1200px;
  --grad-cta: linear-gradient(135deg, #4F89B5 0%, #2F6D8D 55%, #224F63 100%);
  --grad-gold: linear-gradient(135deg, #F4E1A6 0%, #E9C46A 100%);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 12px 34px -18px rgba(0, 0, 0, 0.5);
  font-family: 'Inter', system-ui, sans-serif;
}

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

html.hide #preloader {
  display: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--deep-ocean);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

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

.section {
  position: relative;
  padding: 110px 0;
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--text);
  margin-bottom: 22px;
}

.lead {
  color: var(--text-2);
  font-size: 18px;
  max-width: 620px;
}

.accent {
  color: var(--gold);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-26 { margin-top: 26px; }

.section-head {
  max-width: 740px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-faq {
  background: var(--section);
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--deep-ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#preloader img {
  width: 64px;
  height: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 17px 38px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--light-sand);
  background: var(--grad-cta);
  box-shadow: 0 16px 30px -14px rgba(47, 109, 141, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  background: var(--grad-gold);
  color: var(--deep-ocean);
  box-shadow: 0 18px 34px -12px rgba(233, 196, 106, 0.6);
  transform: translateY(-2px);
}

.btn-hero {
  animation: levitate 3s ease-in-out infinite;
}

.btn-hero:hover {
  animation-play-state: paused;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 1200;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: rgba(16, 42, 58, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px -16px rgba(0, 0, 0, 0.7);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.03em;
  color: var(--text);
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo span .lg-accent {
  color: var(--gold);
}

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

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grad-gold);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 1200;
}

.burger-btn span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.burger-btn span:nth-child(1) { top: 14px; }
.burger-btn span:nth-child(2) { top: 21px; }
.burger-btn span:nth-child(3) { top: 28px; }

.burger-btn.act span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #102A3A 0%, #173C4E 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu .nav-link {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 42, 58, 0.72) 0%, rgba(16, 42, 58, 0.55) 40%, rgba(16, 42, 58, 0.95) 100%),
              url('../img/hero-bg.webp') center/cover no-repeat;
  z-index: -2;
}

.hero-fog {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 70% 30%, rgba(167, 200, 216, 0.12), transparent 60%),
              radial-gradient(50% 40% at 20% 80%, rgba(233, 196, 106, 0.08), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.pill {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mist-blue);
  padding: 8px 16px;
  border: 1px solid rgba(167, 200, 216, 0.3);
  border-radius: 999px;
  background: rgba(34, 79, 99, 0.4);
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  margin-bottom: 24px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  color: var(--text-2);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 20px;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  margin-top: 34px;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
  animation: floatArt 6s ease-in-out infinite;
}

.hero-art::after {
  content: '';
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(233, 196, 106, 0.35), transparent 70%);
  filter: blur(10px);
}

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

/* Wave divider */
.wave-divider {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}

.wave-divider.top {
  top: -1px;
  transform: rotate(180deg);
}

.wave-divider.bottom {
  bottom: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 90px;
}

/* Section backgrounds rhythm */
.bg-deep { background: var(--deep-ocean); }
.bg-section { background: var(--section); }

.section-islands {
  background: var(--section);
}

.section-match {
  background: var(--deep-ocean);
}

.section-restoration {
  background: var(--section);
}

.section-cove {
  background: var(--deep-ocean);
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-media::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: calc(var(--radius) + 12px);
  background: radial-gradient(60% 60% at 50% 40%, rgba(233, 196, 106, 0.14), transparent 70%);
  z-index: -1;
}

/* Chip list */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid rgba(167, 200, 216, 0.14);
}

.chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 0 10px rgba(233, 196, 106, 0.7);
}

/* Card grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid rgba(167, 200, 216, 0.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(233, 196, 106, 0.4);
}

.card-num {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--deep-ocean);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--grad-gold);
  margin-bottom: 20px;
  box-shadow: 0 10px 20px -8px rgba(233, 196, 106, 0.7);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  color: var(--text-2);
  font-size: 15.5px;
}

.combo-note {
  margin-top: 32px;
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(116, 165, 127, 0.16), rgba(233, 196, 106, 0.12));
  border: 1px solid rgba(233, 196, 106, 0.25);
  color: var(--text);
  font-size: 16px;
}

/* Stat cards (icon) */
.stat-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid rgba(167, 200, 216, 0.12);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(233, 196, 106, 0.35);
}

.stat-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, rgba(79, 137, 181, 0.3), rgba(233, 196, 106, 0.22));
  border: 1px solid rgba(233, 196, 106, 0.3);
}

.stat-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
}

.stat-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}

.stat-card p {
  color: var(--text-2);
  font-size: 15px;
}

/* Feature list (restoration) */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid rgba(167, 200, 216, 0.12);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
  transform: translateX(6px);
  border-color: rgba(233, 196, 106, 0.4);
}

.feature-item .dot {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-cta);
}

.feature-item .dot svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-soft);
}

.feature-item span {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  display: flex;
  gap: 20px;
  background: var(--card);
  border: 1px solid rgba(167, 200, 216, 0.12);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.faq-num {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: var(--gold);
  flex: 0 0 auto;
  line-height: 1.2;
}

.faq-q {
  font-family: 'Cinzel', serif;
  font-size: 19px;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-a {
  color: var(--text-2);
  font-size: 15.5px;
}

/* Final CTA */
.final-cta {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 42, 58, 0.82) 0%, rgba(16, 42, 58, 0.7) 50%, rgba(16, 42, 58, 0.95) 100%),
              url('../img/footer-bg.webp') center/cover no-repeat;
  z-index: -1;
}

.final-cta h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  margin-bottom: 20px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.final-cta p {
  color: var(--text-2);
  font-size: 19px;
  margin-bottom: 38px;
}

/* Footer */
.footer {
  background: var(--deep-ocean);
  border-top: 1px solid rgba(167, 200, 216, 0.12);
  padding: 60px 0 34px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(167, 200, 216, 0.1);
}

.footer-brand {
  max-width: 340px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-2);
  font-size: 15px;
}

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

.footer-nav a {
  color: var(--text-2);
  font-size: 15px;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-contact a {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-2);
  font-size: 14px;
}

.footer-bottom .links {
  display: flex;
  gap: 22px;
}

.footer-bottom .links a:hover {
  color: var(--gold);
}

/* Legal pages */
.legal-page {
  padding: calc(var(--header-h) + 70px) 0 90px;
  background: var(--deep-ocean);
}

.legal-content {
  max-width: 880px;
  margin: 0 auto;
  background: var(--section);
  border: 1px solid rgba(167, 200, 216, 0.12);
  border-radius: var(--radius);
  padding: 48px 46px;
}

.legal-content h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 26px;
  color: var(--text);
}

.legal-content h2 {
  font-size: 24px;
  margin: 34px 0 14px;
  color: var(--gold);
}

.legal-content h3 {
  font-size: 20px;
  margin: 26px 0 12px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
}

.legal-content .date,
.legal-content .name,
.legal-content .domain,
.legal-content .app-domain {
  color: var(--text);
}

/* Responsive */
@media (max-width: 1024px) {
  .section { padding: 90px 0; }
  .hero .container { gap: 30px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 22px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .burger-btn { display: block; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-pills { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 320px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand { max-width: 100%; }
  .footer-brand .logo { justify-content: center; }
  .footer-nav { align-items: center; }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .footer-bottom .links { justify-content: center; }
  .faq-item { flex-direction: column; gap: 10px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .container { padding: 0 18px; }
  .legal-content { padding: 32px 22px; }
  .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: center; }
  .card, .stat-card, .faq-item { padding: 24px 22px; }
}
