/* style.css — Fathom Pre-Launch Landing Page Design System */

:root {
  /* Color Tokens (Warm off-white base with Ocean Blue accents) */
  --color-bg: #FAF6EF;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F2EDE4;
  --color-brand: #0EA5E9;
  --color-brand-deep: #0369A1;
  --color-brand-mist: #BAE6FD;
  
  --color-text: #1C1917;       /* Stone 900 */
  --color-text-sub: #44403C;   /* Stone 700 */
  --color-text-muted: #78716C; /* Stone 500 */
  --color-border: #E7E5E4;     /* Stone 200 */
  
  --color-error: #EF4444;
  --color-error-bg: #FEE2E2;
  --color-success: #10B981;
  --color-success-bg: #D1FAE5;
  
  /* Typography Tokens */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout Tokens */
  --radius-card: 16px;
  --radius-pill: 9999px;
  --radius-input: 8px;
  
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow-card: 0 10px 30px -10px rgba(28, 25, 23, 0.08), 0 1px 3px rgba(28, 25, 23, 0.03);
  
  --max-width: 1100px;
}

/* Global Reset & Base Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 0 24px;
}

/* Typography Rules */
h1, h2, h3, .logo-text, .section-label, .btn-primary {
  font-family: var(--font-display);
}

/* Navigation */
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--color-brand);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* Wave lines inside logo */
.logo-icon::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, transparent 35%, var(--color-surface) 36%, var(--color-surface) 40%, transparent 41%);
  background-size: 16px 16px;
  top: -12px;
  left: -8px;
  animation: wave 4s linear infinite;
  opacity: 0.8;
}

@keyframes wave {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-16px, 0); }
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.badge {
  background-color: var(--color-brand-mist);
  color: var(--color-brand-deep);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Hero Section */
.hero-section {
  max-width: var(--max-width);
  margin: 20px auto 80px auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--color-text-sub);
  line-height: 1.55;
}

/* Waitlist Card Form */
.waitlist-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(231, 229, 228, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-sub);
}

input[type="email"],
input[type="text"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-input);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="email"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.checkbox-group label {
  font-size: 13px;
  color: var(--color-text-sub);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.optional-field label {
  color: var(--color-text-muted);
}

.btn-primary {
  background-color: var(--color-brand-deep);
  color: var(--color-surface);
  border: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #025a8b;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background-color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Feedback Messages */
.form-message {
  padding: 12px;
  border-radius: var(--radius-input);
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  text-align: center;
  transition: all 0.3s;
}

.form-message.hidden {
  display: none;
}

.form-message.success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.form-message.error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
}

/* Hero App Mockup Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-frame {
  width: 100%;
  max-width: 380px;
  background-color: #1c1917; /* Dark shell frame */
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 60px -15px rgba(28, 25, 23, 0.25);
  border: 4px solid #2e2a27;
}

.mockup-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Features Grid Component */
.features-section {
  max-width: var(--max-width);
  margin: 0 auto 80px auto;
  border-top: 1px solid var(--color-border);
  padding-top: 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-brand-deep);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

#feature-scoring {
  grid-column: span 2;
}

.feature-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 32px;
  border: 1px solid rgba(231, 229, 228, 0.5);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-icon {
  font-size: 28px;
  background-color: var(--color-bg);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.feature-text {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.55;
}

.feature-caption {
  font-size: 11px;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: -6px;
}

/* Teaser / Comming Soon Section */
.teaser-section {
  max-width: var(--max-width);
  margin: 0 auto 80px auto;
  background-color: var(--color-surface-alt);
  border-radius: var(--radius-card);
  padding: 48px;
  text-align: center;
  border: 1px dashed rgba(28, 25, 23, 0.15);
}

.teaser-content {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teaser-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

.teaser-text {
  font-size: 15px;
  color: var(--color-text-sub);
}

/* Footer Section */
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-note {
  font-size: 12px;
  color: var(--color-text-sub);
  max-width: 600px;
  margin: 0 auto;
}

.copyright {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }
  
  .hero-visual {
    order: -1; /* Place mockup at the top of layout on tablet/mobile */
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #feature-scoring {
    grid-column: span 1;
  }
  
  .hero-title {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 16px;
  }
  
  .nav-container {
    padding: 16px 0;
  }
  
  .waitlist-card {
    padding: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .teaser-section {
    padding: 24px;
  }
  
  .hero-title {
    font-size: 30px;
  }
}
