/* ===========================
   HELGA.io Marketing Site
   Style adapted from klapital.com
   =========================== */

/* --- Custom Properties --- */
:root {
  --bg: #fbfaf9;
  --text: rgb(23, 20, 17);
  --text-light: rgba(23, 20, 17, 0.65);
  --accent: #E8A87C;
  --accent-dark: #D4956A;
  --hero-bg: #1a1a1a;
  --white: #ffffff;
  --border: rgba(23, 20, 17, 0.1);
  --section-alt: #f3f1ef;
  --radius-pill: 60px;
  --radius-card: 16px;
  --font: 'Open Sans', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

p {
  line-height: 1.7;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--hero-bg);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 168, 124, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.btn-submit {
  background: var(--accent);
  color: var(--hero-bg);
  width: 100%;
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 168, 124, 0.35);
}

/* --- Logo (text-based) --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  user-select: none;
}

.logo-helga {
  font-weight: 700;
}

.logo-io {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: currentColor;
  border-radius: 6px;
  padding: 2px 6px;
  margin-left: 1px;
  font-size: 0.75em;
  line-height: 1;
  font-weight: 700;
}

.logo-io span {
  color: var(--hero-bg);
}

.logo-light .logo-io span {
  color: var(--white);
}

.logo-light .logo-io {
  background: var(--white);
}

.logo-dark .logo-io span {
  color: var(--hero-bg);
}

.logo-dark .logo-io {
  background: var(--text);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.transparent {
  background: transparent;
}

.header.solid {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}

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

.header.transparent .logo {
  color: var(--white);
}

.header.solid .logo {
  color: var(--text);
}

.header.solid .logo .logo-io {
  background: var(--text);
}

.header.solid .logo .logo-io span {
  color: var(--white);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.header.transparent .nav-links a {
  color: rgba(255, 255, 255, 0.8);
}

.header.transparent .nav-links a:hover {
  color: var(--white);
}

.header.solid .nav-links a {
  color: var(--text-light);
}

.header.solid .nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
}

.header.transparent .nav-cta {
  background: var(--accent);
  color: var(--hero-bg) !important;
  opacity: 1 !important;
}

.header.solid .nav-cta {
  background: var(--accent);
  color: var(--hero-bg) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  transition: all 0.3s ease;
}

.header.transparent .menu-toggle span {
  background: var(--white);
}

.header.solid .menu-toggle span {
  background: var(--text);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  background: var(--hero-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 40px) 24px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232, 168, 124, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(232, 168, 124, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-logo {
  font-size: 3.5rem;
  margin-bottom: 32px;
  justify-content: center;
  color: var(--white);
}

.hero-logo .logo-io {
  background: var(--white);
}

.hero-logo .logo-io span {
  color: var(--hero-bg);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Section Shared --- */
.section {
  padding: 100px 0;
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* --- Why Now Section --- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.timeline-item {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.timeline-item h3 {
  margin-bottom: 12px;
}

.timeline-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.timeline-item.urgent {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(232, 168, 124, 0.05), transparent);
}

.timeline-cta {
  text-align: center;
}

.timeline-cta p {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(232, 168, 124, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.features-extra {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px;
  border: 1px solid var(--border);
}

.features-extra h3 {
  margin-bottom: 20px;
  font-size: 1.15rem;
}

.features-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.extra-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.extra-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- How It Works Section --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(33.33% - 20px);
  right: calc(33.33% - 20px);
  height: 2px;
  background: var(--border);
}

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

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(232, 168, 124, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  position: relative;
  z-index: 1;
}

.step h3 {
  margin-bottom: 12px;
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 300px;
  margin: 0 auto;
}

/* --- Early Access / Registration Section --- */
.registration {
  background: var(--hero-bg);
  color: var(--white);
}

.registration .section-label {
  color: var(--accent);
}

.registration .section-header h2 {
  color: var(--white);
}

.registration .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

.registration-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-feedback {
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  margin-top: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(232, 168, 124, 0.15);
  color: var(--accent);
  border: 1px solid rgba(232, 168, 124, 0.3);
}

.form-feedback.error {
  display: block;
  background: rgba(220, 80, 80, 0.15);
  color: #e07070;
  border: 1px solid rgba(220, 80, 80, 0.3);
}

.badge-coming-soon {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(232, 168, 124, 0.15);
  color: var(--accent);
  margin-bottom: 16px;
}

/* --- Footer --- */
.footer {
  background: var(--hero-bg);
  color: rgba(255, 255, 255, 0.5);
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand .logo .logo-io {
  background: var(--white);
}

.footer-brand .logo .logo-io span {
  color: var(--hero-bg);
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-contact {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-contact a {
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.8rem;
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

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

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps::before {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section {
    padding: 72px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    color: var(--text) !important;
    font-size: 1.1rem;
  }

  .nav-links .nav-cta {
    color: var(--hero-bg) !important;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 60px) 24px 80px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .section-header {
    margin-bottom: 48px;
  }

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