@font-face {
  font-family: 'Janna';
  src: url('/assets/Janna-LT-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Prevents invisible text during load */
}

@font-face {
  font-family: 'Janna';
  src: url('/assets/Janna-LT-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #f0f7ff;
  --color-surface: #ffffff;
  --color-primary: #4ba8d4;
  --color-primary-dark: #2a7fad;
  --color-primary-light: #a8d8f0;
  --color-text: #1a2a3a;
  --color-text-muted: #5a7a96;
  --color-text-faint: #a0bdd0;
  --gradient-brand: linear-gradient(
    135deg,
    #88ceed 0%,
    #4ba8d4 50%,
    #2a6b9c 100%
  );

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.8rem, 1rem + 5.5vw, 6rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
  font-family: "Janna", sans-serif;
}

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

button,
input {
  font-family: inherit;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

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

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Focus state */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-family: "Janna", sans-serif;
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-brand);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(75, 168, 212, 0.25);
  min-height: 44px;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(75, 168, 212, 0.35);
}

.btn-primary svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-primary-dark);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(
    circle,
    var(--color-primary-light) 0%,
    transparent 70%
  );
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.badge {
  display: inline-block;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 480px;
}

.countdown-box {
  background: var(--color-surface);
  border: 1px solid var(--color-primary-light);
  border-radius: 1rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(75, 168, 212, 0.08);
}

.countdown-value {
  display: block;
  font-family: "Janna", sans-serif;
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.countdown-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

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

.hero-input {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-text-faint);
  border-radius: 9999px;
  padding: 0.875rem 1.5rem;
  font-size: var(--text-base);
  color: var(--color-text);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
}

.hero-input::placeholder {
  color: var(--color-text-faint);
}

.hero-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-message {
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border-radius: 9999px;
  border: 1px solid var(--color-primary-light);
  display: none;
  margin-bottom: 1.5rem;
}

.hero-secondary-cta {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: color 180ms ease;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-secondary-cta:hover {
  color: var(--color-primary);
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: var(--color-surface);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: 3rem;
  text-align: left;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.bento-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: 1.25rem;
  padding: 2.5rem;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.bento-card.large {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.bento-stack .card-title {
  font-size: var(--text-lg);
}

.card-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* Salons Section */
.salons {
  padding: 6rem 0;
  position: relative;
  background: var(--color-surface);
  overflow: hidden;
}

.salons::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-brand);
  opacity: 0.1;
  pointer-events: none;
}

.salons-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .salons-container {
    grid-template-columns: 1fr 1fr;
  }
}

.salons-content {
  text-align: left;
}

.salons-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.salons-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.salons-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Footer */
footer {
  background: var(--color-surface);
  padding: 4rem 0 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: "Janna", sans-serif;
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-text);
}

.footer-info {
  font-size: var(--text-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-social {
  color: var(--color-primary);
  font-weight: 500;
  transition: color 180ms ease;
}

.footer-social:hover {
  color: var(--color-primary-dark);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  border-top: 1px solid var(--color-bg);
  padding-top: 2rem;
  margin-top: 1rem;
  width: 100%;
}

/* Animations & Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile specific tweaks */
@media (max-width: 400px) {
  .nav-content .btn-primary span:not(.sr-only) {
    display: none;
  }
  .nav-content .btn-primary {
    padding: 0.75rem;
  }
}

@media (max-width: 767px) {
  .countdown {
    grid-template-columns: 1fr 1fr;
  }
}
