/* ========================================
   Daily Rundown Landing Page Styles
   Brand Colors:
   - Primary: #2596BE (Teal-Blue)
   - Accent: #F5A623 (Orange-Amber)
   - Neutrals: Slate grays
   ======================================== */

/* ========================================
   CSS Variables
   ======================================== */
:root {
  /* Brand Colors */
  --color-primary: #2596BE;
  --color-primary-light: #4AC0E4;
  --color-primary-dark: #1D7A9E;
  --color-accent: #F5A623;
  --color-accent-light: #FCD34D;
  --color-accent-dark: #D97706;

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-gray-50: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-300: #CBD5E1;
  --color-gray-400: #94A3B8;
  --color-gray-600: #64748B;
  --color-gray-700: #475569;
  --color-gray-800: #1E293B;
  --color-gray-900: #0F172A;

  /* Success */
  --color-success: #22C55E;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Container
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-200);
  padding: var(--spacing-sm) 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo img {
  height: 40px;
  width: auto;
  transition: transform var(--transition-base);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  color: var(--color-gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
  overflow: visible;
}

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

@media (min-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
  }
}

.hero-text {
  text-align: center;
}

@media (min-width: 968px) {
  .hero-text {
    text-align: left;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 968px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background-color: var(--color-gray-100);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  width: fit-content;
  margin: 0 auto;
}

@media (min-width: 968px) {
  .hero-badge {
    margin: 0;
  }
}

.badge-icon {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, var(--color-gray-800), var(--color-gray-900));
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.3),
    0 30px 60px -30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background-color: var(--color-gray-900);
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.mockup-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
}

.placeholder-icon svg {
  animation: rotate 8s linear infinite;
}

.placeholder-text {
  margin-top: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--color-gray-400);
  text-align: center;
}

/* Dual Phone Mockups */
.phone-mockups {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 580px;
}

.phone-mockups .phone-mockup {
  position: absolute;
}

.phone-mockups .phone-back {
  transform: translateX(-80px) translateY(20px) rotate(-6deg) scale(0.9);
  z-index: 1;
  opacity: 0.9;
}

.phone-mockups .phone-front {
  transform: translateX(80px) translateY(-20px) rotate(6deg);
  z-index: 2;
}

/* Gentle float animation for dual phones using margin instead of transform */
.phone-mockups .phone-mockup {
  animation: float-gentle 6s ease-in-out infinite;
}

.phone-mockups .phone-front {
  animation-delay: 0.5s;
}

@keyframes float-gentle {
  0%, 100% {
    margin-top: 0px;
  }
  50% {
    margin-top: -15px;
  }
}

.phone-screen .screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 968px) {
  .phone-mockups {
    min-height: 520px;
  }

  .phone-mockups .phone-back {
    transform: translateX(-60px) translateY(15px) rotate(-5deg) scale(0.85);
  }

  .phone-mockups .phone-front {
    transform: translateX(60px) translateY(-15px) rotate(5deg) scale(0.95);
  }

  .phone-frame {
    width: 240px;
    height: 480px;
  }
}

@media (max-width: 640px) {
  .phone-mockups {
    min-height: 420px;
  }

  .phone-mockups .phone-back {
    transform: translateX(-40px) translateY(10px) rotate(-4deg) scale(0.75);
  }

  .phone-mockups .phone-front {
    transform: translateX(40px) translateY(-10px) rotate(4deg) scale(0.85);
  }

  .phone-frame {
    width: 200px;
    height: 400px;
  }
}

/* ========================================
   Features Section
   ======================================== */
.features {
  padding: var(--spacing-3xl) 0;
  background-color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

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

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

.feature-card {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: var(--spacing-xl);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-gray-300);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-sm);
}

.feature-description {
  color: var(--color-gray-600);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ========================================
   Coming Soon Section
   ======================================== */
.coming-soon {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
}

.coming-soon-content {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.coming-soon-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .coming-soon-title {
    font-size: 2.75rem;
  }
}

.coming-soon-description {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
  line-height: 1.7;
}

.email-signup-form {
  margin-bottom: var(--spacing-xl);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

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

.email-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  transition: all var(--transition-base);
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.email-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.2);
}

.form-note {
  font-size: 0.875rem;
  opacity: 0.8;
  text-align: center;
}

.coming-soon-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}

@media (min-width: 640px) {
  .coming-soon-features {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.mini-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.9375rem;
  opacity: 0.95;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px 0 rgba(245, 166, 35, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(245, 166, 35, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-gray-700);
  border: 2px solid var(--color-gray-300);
}

.btn-secondary:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

.btn-icon, .btn-arrow {
  flex-shrink: 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-400);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--color-gray-800);
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-brand {
    text-align: left;
  }
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--spacing-xs);
}

@media (min-width: 768px) {
  .footer-logo {
    margin-left: 0;
    margin-right: auto;
  }
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md) var(--spacing-lg);
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-link {
  color: var(--color-gray-400);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.fade-in {
  animation: fade-in 0.8s ease-out;
}

.fade-in-up {
  animation: fade-in-up 0.6s ease-out;
  animation-fill-mode: both;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
  text-align: center;
}

.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;
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .coming-soon-title {
    font-size: 1.875rem;
  }
}
