/* ===================================================
   Athelia Project — Coming Soon Page
   Palette: Indigo / Slate Academic Light
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

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

:root {
  --indigo-900: #1e1b4b;
  --indigo-700: #3730a3;
  --indigo-600: #4f46e5;
  --indigo-500: #6366f1;
  --indigo-100: #e0e7ff;
  --indigo-50:  #eef2ff;
  --slate-800:  #1e293b;
  --slate-600:  #475569;
  --slate-400:  #94a3b8;
  --slate-200:  #e2e8f0;
  --slate-100:  #f1f5f9;
  --slate-50:   #f8fafc;
  --white:      #ffffff;
  --radius:     12px;
  --shadow-sm:  0 1px 3px rgba(30,27,75,.08), 0 1px 2px rgba(30,27,75,.04);
  --shadow-md:  0 4px 16px rgba(30,27,75,.10), 0 2px 6px rgba(30,27,75,.06);
  --shadow-lg:  0 12px 40px rgba(30,27,75,.14), 0 4px 12px rgba(30,27,75,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  min-height: 100vh;
  line-height: 1.6;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Topbar --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}
.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--indigo-700);
  letter-spacing: -.02em;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--indigo-50);
  color: var(--indigo-700);
  border: 1px solid var(--indigo-100);
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.topbar-badge::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--indigo-500);
  animation: pulse 2s ease-in-out infinite;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--indigo-600);
  text-decoration: none;
  padding: .35rem .75rem;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
.nav-link:hover {
  background: var(--indigo-50);
  color: var(--indigo-700);
}

/* --- Hero --- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(99,102,241,.08) 0%, transparent 70%),
    var(--slate-50);
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--indigo-600);
  font-size: .95rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp .6s .2s ease forwards;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--indigo-900);
  letter-spacing: -.035em;
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .7s .35s ease forwards;
}

.hero-title span { color: var(--indigo-600); }

.hero-desc {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 580px;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: fadeUp .7s .5s ease forwards;
}

/* --- Waitlist Form --- */
.waitlist-form {
  display: flex;
  gap: .5rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 1rem;
  opacity: 0;
  animation: fadeUp .7s .65s ease forwards;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: .75rem 1.1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  color: var(--slate-800);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.waitlist-form input[type="email"]:focus {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.waitlist-form input[type="email"]::placeholder { color: var(--slate-400); }

.btn-primary {
  padding: .75rem 1.5rem;
  background: var(--indigo-600);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--indigo-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }

.form-note {
  font-size: .8rem;
  color: var(--slate-400);
  opacity: 0;
  animation: fadeUp .7s .8s ease forwards;
}

/* --- Products Section --- */
.products {
  padding: 4rem 1.5rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 2.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo-500), var(--indigo-300));
  opacity: 0;
  transition: opacity .25s;
}
.product-card:hover {
  border-color: var(--indigo-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product-card:hover::before { opacity: 1; }

.product-icon {
  width: 44px;
  height: 44px;
  background: var(--indigo-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.3rem;
}

.product-status {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.status-open  { background: #dcfce7; color: #15803d; }
.status-cloud { background: #fef9c3; color: #a16207; }
.status-soon  { background: var(--indigo-50); color: var(--indigo-600); }

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.product-tagline {
  font-size: .875rem;
  color: var(--slate-600);
  line-height: 1.55;
}

.product-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card-cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--indigo-600);
  letter-spacing: .01em;
}
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: .85rem;
  color: var(--slate-400);
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}
.footer a { color: var(--indigo-600); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.85); }
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .topbar { padding: 1rem 1.25rem; }
  .hero { padding: 3.5rem 1.25rem 2rem; }
  .waitlist-form { flex-direction: column; }
  .btn-primary { width: 100%; }
  .products { padding: 3rem 1.25rem 4rem; }
}
