/* ==========================================================================
   DAILY GRAM — DESIGN SYSTEM (WHOOP-INSPIRED ATHLETIC MINIMAL)
   ========================================================================== */

/* Load custom typography: Archivo (Bold, athletic grotesque) + Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Color system using OKLCH */
  --bg-color: oklch(0.10 0.005 0);             /* Pure rich dark charcoal */
  --text-main: oklch(0.98 0.002 0);            /* High contrast crisp white */
  --text-muted: oklch(0.70 0.005 0);           /* Slate grey */
  --text-dim: oklch(0.48 0.005 0);             /* Dimmed grey */
  
  --brand-accent: oklch(0.78 0.16 142);        /* High-performance Whoop-inspired active green */
  --brand-dark: oklch(0.22 0.04 142);          /* Dark active green */
  --brand-dim: oklch(0.14 0.01 142);           /* Tinted background */
  
  --border-color: oklch(0.20 0.005 0);         /* Structural border line */
  --border-hover: oklch(0.35 0.005 0);         /* Active border */
  --border-focus: var(--brand-accent);

  /* Spacing system (Fluid Scale) */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-s: clamp(0.75rem, 1.5vw, 1.125rem);
  --space-m: clamp(1.25rem, 2.5vw, 1.875rem);
  --space-l: clamp(2rem, 4vw, 3rem);
  --space-xl: clamp(3rem, 6vw, 5rem);
  --space-xxl: clamp(5rem, 10vw, 8rem);
  
  /* Font weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 900; /* Extra heavy for WHOOP branding style */

  /* Custom Transitions */
  --transition-fast: 150ms cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-weight: var(--weight-regular);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Custom Selection style */
::selection {
  background-color: var(--brand-accent);
  color: var(--bg-color);
}

/* ==========================================================================
   TYPOGRAPHY (WHOOP-INSPIRED SANS)
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: var(--weight-display);
  line-height: 1.05;
  letter-spacing: -0.04em; /* Condensed, high-performance feel */
  text-transform: uppercase; /* WHOOP uses bold uppercase headers */
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
}

h3 {
  font-size: clamp(1.35rem, 2.7vw, 1.85rem);
}

p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-m);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-m) 0;
  position: relative;
  z-index: 10;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--brand-accent);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-color);
}

.logo-text {
  font-family: 'Archivo', sans-serif;
  font-weight: var(--weight-display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  background-color: var(--brand-dim);
  border: 1px solid var(--border-color);
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--brand-accent);
  box-shadow: 0 0 8px var(--brand-accent);
}

/* Main Hero section */
.hero-section {
  padding: var(--space-xl) 0 var(--space-xxl) 0;
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xxl);
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
}

.hero-tag {
  font-family: 'Archivo', sans-serif;
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
  background-color: var(--brand-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  border-left: 3px solid var(--brand-accent);
}

.hero-title span {
  display: block;
  color: var(--brand-accent);
}

.hero-description {
  max-width: 520px;
  font-weight: var(--weight-light);
}

/* ==========================================================================
   FORM & INTERACTIVE ELEMENTS
   ========================================================================== */

.signup-box {
  width: 100%;
  max-width: 480px;
  margin-top: var(--space-s);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
}

@media (min-width: 500px) {
  .signup-form {
    flex-direction: row;
    gap: 0;
    border: 1px solid var(--border-color);
    background-color: var(--brand-dim);
    padding: 0.35rem;
    border-radius: 0.75rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  }
  
  .signup-form:focus-within {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 1px var(--brand-accent);
  }
}

.signup-input {
  width: 100%;
  background-color: var(--brand-dim);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.9rem 1.2rem;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.signup-input::placeholder {
  color: var(--text-dim);
}

@media (min-width: 500px) {
  .signup-input {
    border: none;
    background-color: transparent;
    padding: 0.75rem 1rem;
    border-radius: 0;
  }
}

.signup-button {
  background-color: var(--brand-accent);
  color: var(--bg-color);
  border: none;
  font-family: 'Archivo', sans-serif;
  font-weight: var(--weight-bold);
  font-size: 0.95rem;
  padding: 0.9rem 1.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.signup-button:hover {
  background-color: oklch(0.83 0.14 142);
}

.signup-button:active {
  transform: scale(0.98);
}

.signup-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* Success Card */
.success-card {
  background-color: var(--brand-dim);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: var(--space-m);
  text-align: center;
  animation: slideUp var(--transition-smooth);
}

.success-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.success-title {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-family: 'Archivo', sans-serif;
  font-weight: var(--weight-bold);
}

.success-text {
  font-size: 0.85rem;
}

/* ==========================================================================
   APP UI SCREENSHOT MOCKUP
   ========================================================================== */

.mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Realistic Phone Container Frame for Image Screenshot */
.phone-frame {
  width: 290px;
  height: 615px; /* Proportioned for modern 19.5:9 mobile screen ratio */
  border-radius: 2.75rem;
  border: 10px solid var(--border-color);
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Speaker/Notch Overlay */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 1.25rem;
  background-color: var(--border-color);
  border-radius: 1rem;
  z-index: 10;
}

/* Scalable Phone Screen Image */
.phone-mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   FEATURES / VALUE PROPS
   ========================================================================== */

.features-section {
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) 0;
  position: relative;
  background-color: oklch(0.08 0.003 0);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-m) 0;
}

@media (min-width: 768px) {
  .feature-card {
    border-left: 1px solid var(--border-color);
    padding-left: var(--space-m);
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .feature-card:first-child {
    border-left: none;
    padding-left: 0;
  }
}

.feature-num {
  font-family: 'Archivo', sans-serif;
  font-weight: var(--weight-display);
  font-size: 2.75rem;
  color: var(--brand-dark);
  line-height: 1;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  color: var(--text-main);
  text-transform: uppercase;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: var(--weight-light);
}

/* ==========================================================================
   FOUNDER NOTES
   ========================================================================== */

.founder-section {
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) 0;
  text-align: center;
}

.founder-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
}

.avatar-border {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-dark));
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-weight: var(--weight-display);
  font-size: 1.15rem;
  color: var(--text-main);
}

.founder-name {
  text-transform: uppercase;
  font-weight: var(--weight-bold);
}

.founder-quote {
  font-family: inherit;
  font-weight: var(--weight-light);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: var(--space-m) 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 600px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-links {
  display: flex;
  gap: var(--space-m);
}

.footer-links a:hover {
  color: var(--brand-accent);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: slideUp var(--transition-smooth);
}
