/* ============================================================
   Mine — Landing Page
   ============================================================ */

:root {
  --bg:          #080810;
  --bg-2:        #0d0d1a;
  --bg-card:     rgba(255, 255, 255, 0.04);
  --accent:      #00b4d8;
  --accent-dim:  rgba(0, 180, 216, 0.12);
  --accent-glow: rgba(0, 180, 216, 0.35);
  --warm:        #f9a825;
  --text:        #f0f0f8;
  --text-muted:  #8a8aaa;
  --border:      rgba(255, 255, 255, 0.08);
  --radius:      12px;
  --radius-lg:   20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Respect iOS safe areas (notch, home bar) */
  padding-left:  env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Remove tap flash on iOS/Android */
a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* remove 300ms tap delay */
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  /* Account for iOS notch on the sides in landscape */
  padding-left:  max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

/* ============================================================
   LANG DROPDOWN (custom, shared between nav and footer)
   ============================================================ */

.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.65rem;
  min-height: 36px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.lang-trigger:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--accent-dim);
}

.lang-dropdown.open .lang-trigger {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-current {
  color: inherit;
}

.lang-chevron {
  color: inherit;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

/* Dropdown list */
.lang-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  background: #12122a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.375rem;
  list-style: none;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lang-dropdown--up .lang-list {
  top: auto;
  bottom: calc(100% + 6px);
}

.lang-dropdown.open .lang-list {
  display: block;
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8125rem;
  padding: 0.5rem 0.625rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}

.lang-opt:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.lang-opt.active {
  color: var(--accent);
  font-weight: 600;
}

/* Code label (EN, FR…) */
.lang-opt::before {
  content: '';
}

/* Name part */
.lang-opt span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
}

.lang-opt.active span {
  color: var(--accent);
  opacity: 0.7;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 5rem;
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 180, 216, 0.1) 0%, transparent 70%),
    var(--bg);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-halo {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(125, 232, 255, 0.45) 0%,
    rgba(58,  200, 245, 0.22) 40%,
    rgba(0,   160, 210, 0.08) 65%,
    transparent 75%
  );
  filter: blur(36px);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
  transform: translate(0px, 0px);
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(260px, 55vw);
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(0, 180, 216, 0.2);
}

.hero-title {
  font-size: clamp(1.875rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(140deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
  animation: bounce 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50%       { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #080810;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 36px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
  opacity: 1;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */

.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  text-align: center;
}

@media (min-width: 640px) {
  .section-inner {
    padding: 5rem 2rem;
  }
}

.section-inner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* ============================================================
   VIDEO
   ============================================================ */

.video-section {
  background: var(--bg-2);
}

.video-wrapper {
  position: relative;
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(0, 180, 216, 0.05),
    0 8px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(0, 180, 216, 0.06);
}

.video-wrapper video {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 180, 216, 0.92);
  border: none;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #080810;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 32px var(--accent-glow);
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent);
  box-shadow: 0 0 48px var(--accent-glow);
}

.video-play-btn.hidden {
  display: none;
}

/* ============================================================
   FEATURES
   ============================================================ */

.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(0, 180, 216, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

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

/* ============================================================
   NOTIFY
   ============================================================ */

.notify {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.notify::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.notify-sub {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ---- Countdown ---- */

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
}

.countdown-num {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

.countdown-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.375rem;
  font-weight: 500;
}

.countdown-sep {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  opacity: 0.4;
}

/* ---- Form ---- */

.notify-form {
  max-width: 480px;
  margin: 0 auto;
}

#honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .form-row {
    flex-direction: row;
  }
}

.form-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  /* 16px minimum prevents iOS Safari from zooming in on focus */
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent);
  background: rgba(0, 180, 216, 0.07);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.form-input.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.form-msg {
  margin-top: 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-align: left;
}

.form-success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.form-error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.hidden {
  display: none !important;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  /* Respect iOS home bar */
  padding-bottom: max(3rem, env(safe-area-inset-bottom));
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ============================================================
   RESPONSIVE — mobile-first, desktop enhancements
   ============================================================ */

/* Touch targets: minimum 44px on mobile */
.btn-primary,
.video-play-btn {
  min-height: 44px;
}

.nav {
  padding: 0.875rem 1.25rem;
}

@media (min-width: 640px) {
  .nav {
    padding: 1rem 2rem;
  }
}

/* Countdown compact on small screens */
.countdown {
  gap: 0.375rem;
}

.countdown-unit {
  min-width: 56px;
}

.countdown-sep {
  font-size: 1.75rem;
}

@media (min-width: 480px) {
  .countdown {
    gap: 0.75rem;
  }
  .countdown-unit {
    min-width: 68px;
  }
  .countdown-sep {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
