/* ============================================================
   Nodio — Playful Geometric Design System
   style.css
   ============================================================ */

/* 1. Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

/* 2. Theme Tokens — Light Only */
:root {
  /* Colors — Cool Ocean palette */
  --primary: #0EA5E9;       /* Sky Blue — primary brand/action */
  --secondary: #FB7185;     /* Coral — playful pop */
  --accent: #FBBF24;        /* Amber — optimism */
  --quaternary: #14B8A6;    /* Teal — freshness */
  --bg-primary: #F0FDFF;    /* Icy mint-white */
  --bg-secondary: #ECFEFF;  /* Cyan 50 — muted surfaces */
  --text-primary: #0F172A;  /* Slate 900 */
  --text-secondary: #475569;/* Slate 600 */
  --text-success: #14B8A6;
  --text-error: #EF4444;
  --border-default: #CBD5E1;
  --border-strong: #0F172A;
  --border-error: #EF4444;
  --border-success: #14B8A6;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows — hard, no blur */
  --shadow-sm: 4px 4px 0px 0px #0F172A;
  --shadow-md: 6px 6px 0px 0px #0F172A;
  --shadow-lg: 8px 8px 0px 0px #CBD5E1;
  --shadow-pink: 8px 8px 0px 0px #FB7185;

  /* Spacing */
  --spacing-gap: 1.5rem;

  /* Motion */
  --transition-fast: 200ms;
  --transition-normal: 300ms;
  --ease-standard: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-modal: 1100;
  --z-toast: 1200;

  /* Fonts */
  --font-base: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;

  /* Shape color */
  --hero-circle: #FBBF24;
  --dot-pattern: #BAE6FD;
}

/* 3. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-base);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* 4. Layout Utilities */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* 5. Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.1; }

.section-label {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 3.5rem; max-width: 65ch;
}

/* 6. Navigation */
nav {
  position: sticky; top: 0; z-index: var(--z-dropdown);
  background: var(--bg-primary);
  border-bottom: 2px solid var(--border-strong);
  height: 64px;
  display: flex; align-items: center;
}

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

.nav-brand { display: flex; align-items: center; gap: 0.625rem; font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; }
.nav-brand img { width: 28px; height: 28px; }

.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; transition: color var(--transition-fast) ease-out; }
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--primary); color: #fff !important; font-weight: 700;
  padding: 0.5rem 1.125rem; border-radius: var(--radius-full); font-size: 0.9rem;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal) var(--ease-standard), box-shadow var(--transition-normal) ease-out;
}
.nav-cta:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-md); color: #fff !important; }
.nav-cta:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px 0px var(--border-strong); color: #fff !important; }

/* 7. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  padding: 0.875rem 2rem; border-radius: var(--radius-full);
  border: 2px solid var(--border-strong);
  cursor: pointer; text-decoration: none;
  transition: transform var(--transition-normal) var(--ease-standard), box-shadow var(--transition-normal) ease-out, background var(--transition-fast) ease-out;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px 0px var(--border-strong); }
.btn-primary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-primary .btn-icon {
  background: #fff; color: var(--primary); border-radius: var(--radius-full);
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
}
.btn-primary .btn-icon .material-symbols-rounded { font-size: 18px; }

.btn-secondary {
  background: transparent; color: var(--text-primary);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--accent); transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.btn-secondary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px 0px var(--border-strong); }

.btn-danger { background: var(--text-error); color: #fff; box-shadow: var(--shadow-sm); }
.btn-danger:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-md); }

.btn:disabled { opacity: 0.5; filter: grayscale(1); cursor: not-allowed; }

/* 8. Hero */
.hero {
  display: flex; align-items: center; gap: 3rem;
  padding: 6rem 0; position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute;
  left: -80px; top: 20%;
  width: 360px; height: 360px;
  background: var(--hero-circle);
  border-radius: 50%;
  border: 3px solid var(--border-strong);
  z-index: 0;
}

.hero-content { position: relative; z-index: 2; flex: 1 1 55%; }
.hero-visual { position: relative; z-index: 1; flex: 1 1 45%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem; border-radius: var(--radius-full);
  background: var(--bg-secondary); border: 2px solid var(--border-strong);
  font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--quaternary); }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.hero h1 .gradient {
  color: #000;
  position: relative;
}
.hero h1 .gradient::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 6px;
  background: var(--accent); border-radius: var(--radius-full);
}

.hero-sub {
  font-size: 1.15rem; color: var(--text-secondary); max-width: 32rem; margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero visual — dotted pattern + blob mask on image */
.hero-visual::before {
  content: ''; position: absolute; inset: -20px;
  background-image: radial-gradient(var(--dot-pattern) 2px, transparent 2px);
  background-size: 20px 20px;
  z-index: 0;
}

.hero-visual .hero-wave-wrap {
  position: relative; z-index: 1;
  border: 3px solid var(--border-strong);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-md);
  background: var(--bg-primary);
  display: flex; align-items: flex-end; justify-content: center; gap: 6px;
  height: 280px; padding: 2rem 1.5rem;
}

.hero-wave-bar {
  width: 8px; border-radius: var(--radius-full);
  background: var(--primary);
  animation: hero-wave 1.6s ease-in-out infinite;
}
.hero-wave-bar:nth-child(odd) { background: var(--secondary); animation-duration: 1.2s; }
.hero-wave-bar:nth-child(3n) { background: var(--accent); animation-duration: 1.8s; }
.hero-wave-bar:nth-child(4n) { background: var(--quaternary); animation-duration: 1.4s; }
.hero-wave-bar:nth-child(5n) { background: var(--secondary); animation-duration: 2s; }
.hero-wave-bar:nth-child(7n) { background: var(--accent); animation-duration: 1.1s; }

@keyframes hero-wave {
  0%, 100% { height: 12px; opacity: 0.4; }
  50% { height: 180px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wave-bar { animation: none; height: 60px; opacity: 0.6; }
}

/* Floating decorative shapes via pseudo-elements */
.hero::after {
  content: ''; position: absolute; right: 10%; top: 15%;
  width: 24px; height: 24px; background: var(--secondary);
  border: 2px solid var(--border-strong); border-radius: 4px;
  transform: rotate(45deg); z-index: 0;
}

/* 9. Waveform demo */
.wave-demo {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-top: 2.5rem; height: 60px;
}
.wave-bar {
  width: 5px; border-radius: var(--radius-full);
  background: var(--primary);
  animation: wave 1.4s ease-in-out infinite;
}
.wave-bar:nth-child(odd) { background: var(--secondary); animation-duration: 1.1s; }
.wave-bar:nth-child(3n) { background: var(--accent); animation-duration: 1.7s; }
.wave-bar:nth-child(4n) { background: var(--quaternary); }

@keyframes wave {
  0%, 100% { height: 8px; opacity: 0.5; }
  50% { height: 44px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wave-bar { animation: none; height: 20px; opacity: 0.7; }
  .hero::after, .feature-card:hover, .step-num:hover { transform: none !important; }
}

/* 10. Features */
.features { padding: 6rem 0; position: relative; }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  position: relative;
}

/* Dashed connectors between cards */
.feature-grid::before {
  content: ''; position: absolute; top: 50%; left: 8%; right: 8%; height: 0;
  border-top: 2px dashed var(--border-default); z-index: 0;
}

.feature-card {
  position: relative; z-index: 1;
  background: var(--bg-primary);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform var(--transition-normal) var(--ease-standard), box-shadow var(--transition-normal) ease-out;
}
.feature-card:hover { transform: rotate(-1deg) scale(1.02); box-shadow: var(--shadow-pink); }
.feature-card:focus-within { border-color: var(--primary); }

.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-full);
  border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  margin-top: -3rem; margin-bottom: 0.5rem;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}
.feature-icon .material-symbols-rounded { font-size: 28px; }

.feature-card:nth-child(1) .feature-icon { background: var(--primary); color: #fff; }
.feature-card:nth-child(2) .feature-icon { background: var(--secondary); color: #fff; }
.feature-card:nth-child(3) .feature-icon { background: var(--accent); color: var(--border-strong); }
.feature-card:nth-child(4) .feature-icon { background: var(--quaternary); color: #fff; }
.feature-card:nth-child(5) .feature-icon { background: var(--primary); color: #fff; }
.feature-card:nth-child(6) .feature-icon { background: var(--secondary); color: #fff; }

.feature-card h3 { font-size: 1.15rem; font-weight: 700; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }

/* 11. How it works */
.how { padding: 6rem 0; background: var(--bg-secondary); position: relative; }

.how::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background-image: radial-gradient(var(--dot-pattern) 1.5px, transparent 1.5px);
  background-size: 24px 24px; opacity: 0.5; pointer-events: none;
}

.how .container { position: relative; z-index: 1; }

.steps { display: flex; flex-direction: column; max-width: 40rem; }

.step {
  display: flex; gap: 1.5rem; padding: 2rem 0;
  border-bottom: 2px solid var(--border-default);
}
.step:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-full);
  background: var(--bg-primary); border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal) var(--ease-standard);
}
.step-num:hover { transform: rotate(-10deg) scale(1.1); }

.step:nth-child(1) .step-num { background: var(--primary); color: #fff; }
.step:nth-child(2) .step-num { background: var(--secondary); color: #fff; }
.step:nth-child(3) .step-num { background: var(--accent); color: var(--border-strong); }

.step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.375rem; }
.step-content p { color: var(--text-secondary); font-size: 0.95rem; }

/* 12. Privacy */
.privacy { padding: 6rem 0; text-align: center; position: relative; }

.privacy::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 320px; height: 320px; border-radius: 50%;
  background: var(--accent); opacity: 0.15; z-index: 0;
}

.privacy-card {
  position: relative; z-index: 1;
  max-width: 35rem; margin: 0 auto; padding: 3rem;
  background: var(--bg-primary); border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.privacy-card .material-symbols-rounded.privacy-icon {
  font-size: 48px; color: var(--quaternary); margin-bottom: 1rem;
}
.privacy-card h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.privacy-card p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }

/* 13. Footer */
footer { padding: 3rem 0 2.5rem; border-top: 2px solid var(--border-strong); }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
footer .brand { display: flex; align-items: center; gap: 0.625rem; font-family: var(--font-heading); font-weight: 700; }
footer .brand img { width: 24px; height: 24px; }
footer .links { display: flex; gap: 1.5rem; }
footer .links a { color: var(--text-secondary); font-size: 0.9rem; transition: color var(--transition-fast) ease-out; }
footer .links a:hover { color: var(--text-primary); }
footer .copyright { color: var(--text-secondary); font-size: 0.85rem; }
footer .copyright a { color: var(--primary); font-weight: 500; transition: color var(--transition-fast) ease-out; }
footer .copyright a:hover { color: var(--text-primary); }

/* 14. Entrance animations */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--transition-normal) ease-out, transform var(--transition-normal) var(--ease-standard);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.pop-in {
  opacity: 0; transform: scale(0.9);
  transition: opacity var(--transition-normal) ease-out, transform var(--transition-normal) var(--ease-standard);
}
.pop-in.visible { opacity: 1; transform: scale(1); }

/* 15. Responsive */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding-top: 3rem; }
  .hero::before { width: 200px; height: 200px; left: -40px; top: 10%; }
  .hero-visual { width: 100%; order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid::before { display: none; }
  .feature-icon { margin-top: -2.5rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .step { flex-direction: column; gap: 0.75rem; }
  footer .container { flex-direction: column; text-align: center; }
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover { transform: rotate(-1deg) scale(1.02); }
}