/* ================================================
   EBHAR — Coming Soon · styles.css
   ================================================ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #0066ff;
  --blue-dim:   rgba(0, 102, 255, 0.12);
  --cyan:       #0099cc;
  --purple:     #7c3aed;

  /* Dark theme (default) */
  --bg:         #060c1a;
  --bg-2:       #0d1528;
  --bg-3:       #111d35;
  --border:     rgba(255,255,255,0.08);
  --text:       #f0f4ff;
  --text-muted: rgba(240,244,255,0.55);

  --grid-color:  rgba(0,102,255,0.04);
  --glow-blue:   rgba(0,102,255,0.12);
  --glow-cyan:   rgba(0,217,255,0.10);
  --glow-purple: rgba(124,58,237,0.08);

  --chip-bg:     #111d35;
  --notify-bg:   linear-gradient(135deg, rgba(0,102,255,0.06), rgba(0,217,255,0.04));
  --notify-border: rgba(0,102,255,0.25);
  --input-bg:    rgba(255,255,255,0.05);
  --toast-bg:    #1e293b;
  --toast-border: rgba(255,255,255,0.1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 14px;
}

/* ── Light theme ── */
body.light {
  --bg:         #f5f7ff;
  --bg-2:       #eef1fb;
  --bg-3:       #e6eaf8;
  --border:     rgba(0,0,0,0.08);
  --text:       #0d1528;
  --text-muted: rgba(13,21,40,0.5);

  --cyan:       #0066ff;

  --grid-color:  rgba(0,102,255,0.06);
  --glow-blue:   rgba(0,102,255,0.08);
  --glow-cyan:   rgba(0,102,255,0.06);
  --glow-purple: rgba(124,58,237,0.05);

  --chip-bg:     #e6eaf8;
  --notify-bg:   linear-gradient(135deg, rgba(0,102,255,0.05), rgba(0,153,204,0.04));
  --notify-border: rgba(0,102,255,0.2);
  --input-bg:    rgba(255,255,255,0.9);
  --toast-bg:    #1e293b;
  --toast-border: rgba(255,255,255,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

/* ── Layered background ── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.glow {
  position: fixed; border-radius: 50%;
  filter: blur(120px); pointer-events: none; z-index: 0;
}
.glow-blue   { width: 700px; height: 700px; top: -200px; left: -150px;  background: var(--glow-blue); }
.glow-cyan   { width: 600px; height: 600px; bottom: -100px; right: -100px; background: var(--glow-cyan); }
.glow-purple { width: 500px; height: 500px; top: 40%; left: 50%; transform: translate(-50%,-50%); background: var(--glow-purple); }

#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ── Page wrapper ── */
.page {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  /* Dark mode: make dark navy text white, keep overall shape crisp */
  filter: brightness(0) invert(1);
  transition: filter 0.4s var(--ease);
}

body.light .logo-img {
  /* Light mode: show original colors */
  filter: none;
}

.social-nav { display: flex; gap: 16px; align-items: center; }

/* ── Theme toggle ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  flex-shrink: 0;
}
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle:hover { background: var(--blue-dim); border-color: var(--blue); color: var(--blue); transform: rotate(20deg); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
body.light .theme-toggle .icon-sun  { display: block; }
body.light .theme-toggle .icon-moon { display: none; }

/* Light mode overrides for count numbers */
body.light .count-num { color: var(--blue); }
body.light .status-pill { background: rgba(0,102,255,0.07); border-color: rgba(0,102,255,0.25); color: var(--blue); }
body.light .pulse-dot { background: var(--blue); box-shadow: 0 0 0 0 rgba(0,102,255,0.5); }
body.light .social-link:hover { color: var(--blue); }
body.light .contact-link:hover { color: var(--blue); }
body.light .form-msg.success { color: #059669; }
body.light .toast { color: #f0f4ff; }

.social-link {
  color: var(--text-muted);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  display: flex;
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { color: var(--cyan); transform: translateY(-2px); }

/* ── Main ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 0 48px;
  gap: 0;
}

/* ── Status pill ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,217,255,0.08);
  border: 1px solid rgba(0,217,255,0.25);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 36px;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0,217,255,0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,217,255,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(0,217,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,217,255,0); }
}

/* ── Headline ── */
.headline {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 60%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subheadline {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
  font-weight: 400;
  margin-bottom: 40px;
}

/* ── Service chips ── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 52px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  cursor: default;
}
.chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.chip:hover {
  background: var(--blue-dim);
  border-color: rgba(0,102,255,0.4);
  color: var(--text);
}

/* ── Countdown ── */
.countdown-wrap {
  margin-bottom: 48px;
  width: 100%;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.count-unit {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  min-width: 96px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.count-unit:hover {
  border-color: rgba(0,102,255,0.4);
  background: var(--blue-dim);
}

.count-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

.count-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.count-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  align-self: flex-start;
  padding-top: 16px;
  line-height: 1;
}

/* ── Notify form ── */
.notify-wrap {
  background: var(--notify-bg);
  border: 1px solid var(--notify-border);
  border-radius: 20px;
  padding: 40px 48px;
  width: 100%;
  max-width: 600px;
  margin-bottom: 32px;
}

.notify-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.notify-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.notify-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.input-wrap {
  flex: 1;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.notify-input {
  width: 100%;
  padding: 13px 16px 13px 40px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.notify-input::placeholder { color: var(--text-muted); }
.notify-input:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(0,102,255,0.08);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.15);
}

.notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--blue), #0055d4);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
}
.notify-btn .btn-icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.notify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,102,255,0.35);
}
.notify-btn:hover .btn-icon { transform: translateX(3px); }
.notify-btn:active { transform: translateY(0); }
.notify-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }

.form-msg {
  font-size: 0.85rem;
  margin-top: 12px;
  min-height: 20px;
  color: var(--text-muted);
}
.form-msg.success { color: #34d399; }
.form-msg.error   { color: #f87171; }

/* ── Contact row ── */
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}
.contact-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.contact-link:hover { color: var(--cyan); }

.contact-divider { color: var(--border); user-select: none; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: auto;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  transition: bottom 0.35s var(--ease);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.toast.visible { bottom: 32px; }
.toast.success { border-color: rgba(52,211,153,0.4); background: rgba(6,78,59,0.85); }
.toast.error   { border-color: rgba(248,113,113,0.4); background: rgba(127,29,29,0.85); }

/* ── Entrance animations ── */
.animate-fade-in {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.65s var(--ease) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .page { padding: 0 16px; }

  .main { padding: 40px 0 32px; }

  .headline { letter-spacing: -1px; }

  .count-unit { min-width: 68px; padding: 14px 16px; }
  .count-num  { font-size: 1.8rem; }
  .count-sep  { font-size: 1.5rem; padding-top: 12px; }

  .notify-wrap { padding: 28px 20px; }

  .notify-form { flex-direction: column; }
  .notify-btn, .input-wrap { width: 100%; }
}

@media (max-width: 380px) {
  .countdown { gap: 4px; }
  .count-unit { min-width: 60px; padding: 12px 10px; }
  .count-num  { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
