/* ═══════════════════════════════════════════════
   KONEKTHON 2026 — Premium Event Landing
   ═══════════════════════════════════════════════ */

:root {
  --accent: #C2185B;
  --accent-light: #E91E75;
  --accent-dark: #8E0038;
  --accent-glow: rgba(194, 24, 91, 0.25);
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --bg: #FAFAFA;
  --bg-dark: #0F0F1A;
  --bg-card: #FFFFFF;
  --border: rgba(0, 0, 0, 0.06);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Noise texture */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ─── HERO ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 15, 26, 0.65) 0%, rgba(15, 15, 26, 0.80) 60%, rgba(15, 15, 26, 0.95) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, var(--accent-glow), transparent),
    url('/assets/img/hero.jpg') center/cover no-repeat;
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 40px 24px;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding: 8px 24px;
  border: 1px solid rgba(194, 24, 91, 0.3);
  border-radius: 100px;
  margin-bottom: 40px;
  opacity: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: #FFFFFF;
  margin-bottom: 0;
  opacity: 0;
}

.hero__line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 32px auto;
  opacity: 0;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 48px;
  opacity: 0;
}

.hero__meta {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 24px;
  opacity: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ─── CTA BUTTON ──────────────────────────────── */
.btn-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--accent);
  padding: 18px 52px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  opacity: 0;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.btn-cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  text-decoration: none;
}

.btn-cta:hover::before { transform: translateX(100%); }
.btn-cta:active { transform: translateY(0); }
.btn-cta:disabled { background: #555; cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── STATS BAR ───────────────────────────────── */
.stats-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}

.stats-bar__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  padding: 48px 24px;
}

.stats-bar__item {
  text-align: center;
  opacity: 0;
}

.stats-bar__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stats-bar__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-bar__divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ─── SECTIONS ────────────────────────────────── */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
}

.section--dark {
  background: var(--bg-dark);
  color: #FFFFFF;
}

.section--accent {
  background: var(--accent);
  color: #FFFFFF;
}

.section__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  text-align: center;
  opacity: 0;
}

.section__label--light { color: rgba(255,255,255,0.6); }

.section__subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: -32px;
  margin-bottom: 48px;
  opacity: 0;
}

/* ─── BIG QUOTE ───────────────────────────────── */
.big-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  opacity: 0;
}

.big-quote strong {
  color: #FFFFFF;
  font-weight: 600;
}

.big-quote__mark {
  font-size: 4em;
  line-height: 0;
  position: absolute;
  top: -0.1em;
  left: -0.4em;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
}

/* ─── TIMELINE ────────────────────────────────── */
.timeline {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding: 0 0 48px 32px;
  opacity: 0;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.timeline__item--end .timeline__dot {
  background: var(--accent);
}

.timeline__time {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline__content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.timeline__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-style: italic;
}

/* ─── INFO GRID ───────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.info-card {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: transform 0.3s var(--ease-out);
}

.info-card:hover { transform: translateY(-4px); }

.info-card__icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.info-card__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 8px;
}

.info-card__value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.info-card__value a {
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.3s;
}

.info-card__value a:hover { border-color: #FFFFFF; text-decoration: none; }

/* ─── FORM SECTION ────────────────────────────── */
.section--form {
  background: #FFFFFF;
  padding-bottom: clamp(100px, 15vw, 160px);
}

.form {
  max-width: 640px;
  margin: 0 auto;
  opacity: 0;
}

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

.form__group { margin-bottom: 20px; }

.form__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: all 0.3s var(--ease-out);
}

.form__input::placeholder { color: #C0C0C0; }

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form__input--error { border-color: #DC2626; }

.form__error {
  color: #DC2626;
  font-size: 0.78rem;
  margin-top: 6px;
  display: none;
}

.form__error.visible { display: block; }

.form__checks { margin: 24px 0 8px; }

.form__checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.form__checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form__checkbox-group label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.form__checkbox-group a { color: var(--accent); text-decoration: underline; }

.form__submit {
  width: 100%;
  margin-top: 16px;
  opacity: 1;
}

.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ─── MESSAGES ────────────────────────────────── */
.message {
  max-width: 640px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}

.message--success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.message--error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.message--info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.message.visible { display: block; }

/* ─── WAITLIST ────────────────────────────────── */
.waitlist {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: none;
}

.waitlist.visible { display: block; }

.waitlist__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; }
.waitlist__text { color: var(--text-secondary); margin-bottom: 24px; }

.waitlist__form {
  display: flex;
  gap: 12px;
  max-width: 450px;
  margin: 0 auto;
}

.waitlist__form input { flex: 1; }
.waitlist__form .btn-cta { white-space: nowrap; padding: 14px 28px; opacity: 1; }

/* ─── FOOTER ──────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  padding: 48px 24px;
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer__org {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.footer__contact {
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.footer__contact a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.footer__contact a:hover { color: var(--accent-light); }

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer__links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}

.footer__links a:hover { color: rgba(255,255,255,0.6); }

/* ─── COOKIE BANNER ───────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 16px 24px;
  z-index: 1000;
  display: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.cookie-banner.visible { display: block; }

.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  flex: 1;
}

.cookie-banner__text a { color: rgba(255,255,255,0.8); text-decoration: underline; }

.cookie-banner__actions { display: flex; gap: 8px; }

.cookie-banner__btn {
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.cookie-banner__btn--accept { background: var(--accent); color: #FFFFFF; }
.cookie-banner__btn--accept:hover { background: var(--accent-light); }
.cookie-banner__btn--reject { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.cookie-banner__btn--reject:hover { background: rgba(255,255,255,0.15); }
.cookie-banner__btn--config { background: transparent; color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.15); }

/* ─── LOADING SPINNER ─────────────────────────── */
.btn-cta--loading { position: relative; color: transparent !important; }
.btn-cta--loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  top: 50%; left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 640px) {
  .hero__title { font-size: clamp(3rem, 18vw, 5rem); }
  .form__row { grid-template-columns: 1fr; }
  .stats-bar__inner { flex-direction: column; gap: 24px; }
  .stats-bar__divider { width: 40px; height: 1px; }
  .info-grid { grid-template-columns: 1fr; gap: 12px; }
  .info-card { padding: 24px 16px; }
  .big-quote__mark { display: none; }
  .waitlist__form { flex-direction: column; }
  .cookie-banner__inner { flex-direction: column; text-align: center; }
  .cookie-banner__actions { justify-content: center; }
  .hero__scroll { display: none; }
}

@media (min-width: 641px) and (max-width: 800px) {
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .btn-cta { transition: none; }
  .hero__scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}
