/* ============================================
   W1.nz — Pacific-Modern Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

:root {
  /* Ocean + Land palette */
  --deep-navy: #0B1D3A;
  --ocean-blue: #1A3A5C;
  --koru-green: #2D8F6F;
  --koru-light: #3AAF8A;
  --pohutukawa: #D94F3D;
  --sand-light: #F7F3EE;
  --sand-warm: #EDE8E0;
  --cloud-white: #FAFAF8;
  --fog-grey: #9BA5B0;
  --text-primary: #0B1D3A;
  --text-secondary: #4A5568;
  --text-muted: #7A8599;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--cloud-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Topographic background texture ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      transparent 89deg,
      rgba(45, 143, 111, 0.015) 89deg,
      rgba(45, 143, 111, 0.015) 90deg
    );
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  transition: all 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(11, 29, 58, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--deep-navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--koru-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--koru-green);
}

.lang-switch {
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border: 1.5px solid var(--ocean-blue);
  border-radius: 100px;
  color: var(--ocean-blue);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
}

.lang-switch:hover {
  background: var(--ocean-blue);
  color: white;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) var(--space-md);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 143, 111, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 58, 92, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Topo contour lines */
.hero-topo {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-topo svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(45, 143, 111, 0.08);
  border: 1px solid rgba(45, 143, 111, 0.15);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--koru-green);
  margin-bottom: var(--space-md);
  animation: fadeSlideUp 0.8s ease forwards;
  opacity: 0;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--koru-green);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--deep-navy);
  max-width: 800px;
  animation: fadeSlideUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero h1 em {
  font-style: italic;
  color: var(--koru-green);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-top: var(--space-md);
  line-height: 1.7;
  animation: fadeSlideUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

/* Animated domain demo */
.domain-demo {
  margin-top: var(--space-lg);
  animation: fadeSlideUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.domain-box {
  display: inline-flex;
  align-items: center;
  background: var(--deep-navy);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-family: 'DM Sans', monospace;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 24px rgba(11, 29, 58, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  gap: 0;
}

.domain-box .protocol {
  color: var(--fog-grey);
  margin-right: 0.2rem;
}

.domain-typed {
  color: var(--koru-light);
  font-weight: 600;
  min-width: 60px;
}

.domain-typed::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--koru-light);
  margin-left: 1px;
}

.domain-box .tld {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  animation: fadeSlideUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--koru-green);
  color: white;
  box-shadow: 0 2px 12px rgba(45, 143, 111, 0.3);
}

.btn-primary:hover {
  background: var(--koru-light);
  box-shadow: 0 4px 20px rgba(45, 143, 111, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid rgba(11, 29, 58, 0.15);
}

.btn-ghost:hover {
  border-color: var(--koru-green);
  color: var(--koru-green);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ============================================
   Section Commons
   ============================================ */

section {
  position: relative;
  z-index: 1;
}

.section-pad {
  padding: var(--space-2xl) var(--space-md);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--koru-green);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--deep-navy);
  max-width: 600px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 500px;
  margin-top: var(--space-sm);
  font-size: 1.05rem;
}

/* ============================================
   Features (What We Offer)
   ============================================ */

.features {
  background: var(--sand-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.feature-card {
  background: var(--cloud-white);
  border: 1px solid rgba(11, 29, 58, 0.06);
  border-radius: 16px;
  padding: var(--space-lg) var(--space-md);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--koru-green), var(--koru-light));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(11, 29, 58, 0.08);
  border-color: rgba(45, 143, 111, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  background: rgba(45, 143, 111, 0.08);
  color: var(--koru-green);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--deep-navy);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================
   Use Cases (Perfect For)
   ============================================ */

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.use-case {
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  border-radius: 16px;
  border: 1px solid rgba(11, 29, 58, 0.06);
  transition: all 0.3s ease;
  background: var(--cloud-white);
}

.use-case:hover {
  border-color: rgba(45, 143, 111, 0.2);
  box-shadow: 0 8px 30px rgba(11, 29, 58, 0.06);
}

.use-case-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(45, 143, 111, 0.1), rgba(26, 58, 92, 0.08));
}

.use-case h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--deep-navy);
  margin-bottom: 0.3rem;
}

.use-case p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
  background: var(--deep-navy);
  color: white;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(45, 143, 111, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(26, 58, 92, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.how-it-works .section-label {
  color: var(--koru-light);
}

.how-it-works .section-title {
  color: white;
}

.how-it-works .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
  position: relative;
}

/* Connector line */
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--koru-green), var(--koru-light), var(--koru-green));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.3rem;
  background: var(--koru-green);
  color: white;
  box-shadow: 0 0 0 6px rgba(45, 143, 111, 0.15);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: white;
}

.step p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  max-width: 200px;
  margin: 0 auto;
}

/* ============================================
   Fair Usage / Policy
   ============================================ */

.policy {
  background: var(--sand-light);
}

.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  align-items: start;
}

.policy-list {
  list-style: none;
}

.policy-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(11, 29, 58, 0.06);
  font-size: 1rem;
  color: var(--text-secondary);
}

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

.policy-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

.policy-check.yes {
  background: rgba(45, 143, 111, 0.1);
  color: var(--koru-green);
}

.policy-check.no {
  background: rgba(217, 79, 61, 0.1);
  color: var(--pohutukawa);
}

.policy-note {
  background: var(--cloud-white);
  border-radius: 16px;
  padding: var(--space-lg);
  border: 1px solid rgba(11, 29, 58, 0.06);
}

.policy-note h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--deep-navy);
  margin-bottom: var(--space-sm);
}

.policy-note p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.storage-bar {
  margin-top: var(--space-md);
}

.storage-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.storage-bar-track {
  height: 8px;
  background: var(--sand-warm);
  border-radius: 100px;
  overflow: hidden;
}

.storage-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--koru-green), var(--koru-light));
  border-radius: 100px;
  transition: width 1.5s ease;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.cta-section .section-title {
  margin: 0 auto;
  max-width: 700px;
}

.cta-section .section-desc {
  margin: var(--space-sm) auto 0;
  max-width: 500px;
}

.cta-actions {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

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

.footer {
  background: var(--deep-navy);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: white;
  margin-bottom: var(--space-sm);
}

.footer-logo span {
  color: var(--koru-light);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--koru-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: var(--koru-light);
  text-decoration: none;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

@media (max-width: 1024px) {
  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .steps::before {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 8rem var(--space-sm) var(--space-xl);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-topo {
    display: none;
  }

  .nav-links {
    gap: var(--space-sm);
  }

  .nav-links .nav-hide-mobile {
    display: none;
  }

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

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .domain-box {
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .section-pad {
    padding: var(--space-xl) var(--space-sm);
  }
}
