@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors - Light Theme */
  --bg-color: #F4FBFF;
  --sky-top: #9FD9F7;
  --sky-middle: #D8F2FF;
  --sky-bottom: #D6EDFF;
  --sky-glow: rgba(255, 255, 255, 0.72);
  
  --primary: #0A8F7A;
  --primary-hover: #087564;
  --primary-bg: rgba(10, 143, 122, 0.12);
  --secondary: #1F6FAE;
  --secondary-hover: #175485;
  --secondary-bg: rgba(31, 111, 174, 0.10);
  
  --text: #102F45;
  --text-secondary: rgba(62, 107, 132, 0.90);
  --card-text-primary: #11344A;
  --card-text-secondary: rgba(17, 52, 74, 0.76);
  
  --surface: rgba(255, 255, 255, 0.75);
  --surface-opaque: #FFFFFF;
  --section-bg: rgba(247, 252, 255, 0.85);
  --border-color: rgba(10, 143, 122, 0.15);
  --shadow-color: rgba(10, 50, 80, 0.08);
  
  /* Weather Colors - Excellent (Safe) */
  --weather-ex-accent: #C97812;
  --weather-ex-bg: #FFF1D4;
  --weather-ex-gradient-1: rgba(255, 241, 212, 0.75);
  --weather-ex-gradient-2: rgba(201, 120, 18, 0.35);
  
  /* Weather Colors - Stable (Track) */
  --weather-st-accent: #0A8F7A;
  --weather-st-bg: #DDF7F2;
  --weather-st-gradient-1: rgba(221, 247, 242, 0.75);
  --weather-st-gradient-2: rgba(10, 143, 122, 0.35);
  
  /* Weather Colors - Warning (High) */
  --weather-wa-accent: #6C73B8;
  --weather-wa-bg: #E8EAFF;
  --weather-wa-gradient-1: rgba(232, 234, 255, 0.75);
  --weather-wa-gradient-2: rgba(108, 115, 184, 0.35);

  /* iPhone Bezels */
  --iphone-bezel: #1e293b;
  --iphone-reflection: rgba(255, 255, 255, 0.15);

  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-speed: 0.3s;
}

body.dark {
  /* Colors - Dark Theme */
  --bg-color: #050A14;
  --sky-top: #050A14;
  --sky-middle: #0A1828;
  --sky-bottom: #123446;
  --sky-glow: rgba(47, 142, 163, 0.22);
  
  --primary: #42C4AD;
  --primary-hover: #5be3cc;
  --primary-bg: rgba(66, 196, 173, 0.18);
  --secondary: #6AAEEA;
  --secondary-hover: #8fc2f2;
  --secondary-bg: rgba(106, 174, 234, 0.16);
  
  --text: #EEF8FF;
  --text-secondary: rgba(184, 216, 234, 0.88);
  --card-text-primary: #F4FBFF;
  --card-text-secondary: rgba(244, 251, 255, 0.74);
  
  --surface: rgba(10, 23, 36, 0.80);
  --surface-opaque: #0D1B2A;
  --section-bg: rgba(16, 40, 62, 0.88);
  --border-color: rgba(66, 196, 173, 0.20);
  --shadow-color: rgba(0, 0, 0, 0.4);
  
  /* Weather Colors - Excellent (Safe) */
  --weather-ex-accent: #E7B85F;
  --weather-ex-bg: #2F2618;
  --weather-ex-gradient-1: rgba(47, 38, 24, 0.8);
  --weather-ex-gradient-2: rgba(231, 184, 95, 0.25);
  
  /* Weather Colors - Stable (Track) */
  --weather-st-accent: #42C4AD;
  --weather-st-bg: #102C35;
  --weather-st-gradient-1: rgba(16, 44, 53, 0.8);
  --weather-st-gradient-2: rgba(66, 196, 173, 0.25);
  
  /* Weather Colors - Warning (High) */
  --weather-wa-accent: #969DE8;
  --weather-wa-bg: #1D2348;
  --weather-wa-gradient-1: rgba(29, 35, 72, 0.8);
  --weather-wa-gradient-2: rgba(150, 157, 232, 0.25);
  
  --iphone-bezel: #0f172a;
  --iphone-reflection: rgba(255, 255, 255, 0.05);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color var(--transition-speed) ease, 
              border-color var(--transition-speed) ease, 
              color var(--transition-speed) ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at bottom right, var(--sky-glow) 0%, transparent 65%),
    linear-gradient(135deg, var(--sky-top) 0%, var(--sky-middle) 45%, var(--sky-bottom) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: var(--primary-hover);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px var(--shadow-color);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 24px;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--sky-top), var(--sky-middle));
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

body.dark .logo-icon {
  background: linear-gradient(135deg, #050a14, #123446);
}

.logo-bg,
.logo-sun,
.logo-coin-base,
.logo-coin-slot {
  transition: fill var(--transition-speed) ease;
}

body.dark .logo-bg {
  fill: url(#logoGradDark);
}

body.dark .logo-sun {
  fill: #42c4ad;
}

body.dark .logo-coin-base {
  fill: #42c4ad;
}

body.dark .logo-coin-slot {
  fill: #0a8f7a;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

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

.controls-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Button & Controls Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(10, 143, 122, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 143, 122, 0.35);
}

.btn-secondary {
  background-color: var(--primary-bg);
  color: var(--primary) !important;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(10, 143, 122, 0.20);
  transform: translateY(-2px);
}

.icon-btn {
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  color: var(--primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.icon-btn:hover {
  background-color: rgba(10, 143, 122, 0.2);
  transform: scale(1.05);
}

.lang-switch {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 58px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.hero-content p {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
}

.app-store-badges {
  display: flex;
  gap: 16px;
}

.app-store-badge {
  display: inline-block;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform 0.2s ease;
}

.app-store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.app-store-badge img {
  height: 100%;
  display: block;
}

/* iPhone Screen Mockup Styling */
.iphone-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.iphone-frame {
  width: 320px;
  height: 640px;
  border-radius: 46px;
  border: 12px solid var(--iphone-bezel);
  background-color: #000;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 
              inset 0 0 4px 2px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background-color: var(--iphone-bezel);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 0 var(--iphone-bezel);
  pointer-events: none;
}

.iphone-notch::before {
  content: '';
  width: 45px;
  height: 4px;
  background-color: #334155;
  border-radius: 2px;
  position: absolute;
  top: 8px;
}

.iphone-notch::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #1e293b;
  border-radius: 50%;
  position: absolute;
  right: 24px;
  top: 6px;
  border: 1px solid #334155;
}

.iphone-screen-screenshot {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--bg-color);
  user-select: none;
  overflow: hidden;
  border-radius: 34px;
}

.iphone-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Financial Weather Widget */
.weather-widget {
  padding: 16px;
  border-radius: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 25px -5px var(--shadow-color);
  cursor: pointer;
  background: linear-gradient(135deg, var(--weather-gradient-1, var(--weather-st-gradient-1)), var(--weather-gradient-2, var(--weather-st-gradient-2)));
  border-color: rgba(10, 143, 122, 0.12);
  min-height: 128px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.weather-widget:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.weather-icon-wrapper {
  font-size: 46px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
}

.weather-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.weather-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--card-text-primary);
}

.weather-message {
  font-size: 13px;
  color: var(--card-text-secondary);
  line-height: 1.3;
}

.weather-detail {
  font-size: 12px;
  font-weight: 600;
  color: var(--weather-accent, var(--weather-st-accent));
  margin-top: 2px;
}



/* Category Specific Variables */
.cat-groceries {
  background-color: rgba(19, 136, 111, 0.16);
  color: #13886F;
}
body.dark .cat-groceries {
  background-color: rgba(88, 191, 168, 0.22);
  color: #58BFA8;
}

.cat-dining {
  background-color: rgba(184, 102, 20, 0.15);
  color: #B86614;
}
body.dark .cat-dining {
  background-color: rgba(231, 184, 95, 0.22);
  color: #E7B85F;
}

.cat-transport {
  background-color: rgba(43, 117, 184, 0.15);
  color: #2B75B8;
}
body.dark .cat-transport {
  background-color: rgba(106, 174, 234, 0.20);
  color: #6AAEEA;
}

.cat-household {
  background-color: rgba(22, 126, 143, 0.15);
  color: #167E8F;
}
body.dark .cat-household {
  background-color: rgba(84, 194, 198, 0.20);
  color: #54C2C6;
}

.cat-subscriptions {
  background-color: rgba(185, 85, 134, 0.15);
  color: #B95586;
}
body.dark .cat-subscriptions {
  background-color: rgba(216, 137, 176, 0.20);
  color: #D889B0;
}

.cat-uncategorized {
  background-color: rgba(108, 115, 184, 0.12);
  color: #6C73B8;
}
body.dark .cat-uncategorized {
  background-color: rgba(150, 157, 232, 0.15);
  color: #969DE8;
}



/* Feature Showcase Grid */
.features-title-container {
  text-align: center;
  margin-bottom: 60px;
}

.features-title-container h2 {
  font-size: 40px;
  color: var(--text);
  margin-bottom: 16px;
}

.features-title-container p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px var(--shadow-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px var(--shadow-color);
  border-color: rgba(10, 143, 122, 0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 14px;
}

.feature-card p {
  font-size: 16px;
  margin-bottom: 28px;
  flex: 1;
}

/* Interactive Split Calculator Widget */
.calc-container {
  background: var(--section-bg);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
  margin-top: auto;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-currency {
  position: absolute;
  left: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 12px 12px 12px 52px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-bg);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  border-radius: 4px;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.calc-res-box {
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.05);
}

body.dark .calc-res-box {
  border-color: rgba(255,255,255,0.05);
}

.calc-res-title {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.calc-res-value {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}

.calc-res-value.accent {
  color: var(--primary);
}

/* Auto-categorization Sandbox */
.keyword-sandbox {
  background: var(--section-bg);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
  margin-top: auto;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.suggestion-chip {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  cursor: pointer;
  color: var(--text-secondary);
}

.suggestion-chip:hover {
  background-color: var(--primary-bg);
  color: var(--primary);
}

.keyword-input {
  padding-left: 14px;
}

.tag-result {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  background: var(--surface);
  border: 1px dashed var(--border-color);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tag-result.matched {
  border-style: solid;
}

/* iCloud Sync Graphic */
.icloud-graphic {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: auto;
  position: relative;
  height: 180px;
}

.phone-wireframe {
  width: 70px;
  height: 130px;
  border-radius: 14px;
  border: 3px solid var(--text-secondary);
  opacity: 0.7;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--surface);
}

.phone-wireframe::before {
  content: '';
  width: 24px;
  height: 6px;
  background-color: var(--text-secondary);
  border-radius: 3px;
  position: absolute;
  top: 4px;
}

.phone-wireframe svg {
  font-size: 20px;
  color: var(--text-secondary);
}

.icloud-cloud {
  font-size: 56px;
  color: var(--primary);
  filter: drop-shadow(0 4px 10px rgba(10, 143, 122, 0.15));
  position: relative;
  animation: float 4s ease-in-out infinite;
}

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

.sync-line {
  position: absolute;
  top: 50%;
  width: 25%;
  height: 2px;
  border-bottom: 2px dashed var(--primary);
  opacity: 0.5;
}

.sync-line.left {
  left: 20%;
  transform-origin: left;
}

.sync-line.right {
  right: 20%;
}

.sync-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  top: -3px;
}

.sync-line.left .sync-pulse {
  animation: pulse-left 2s linear infinite;
}

.sync-line.right .sync-pulse {
  animation: pulse-right 2s linear infinite;
}

@keyframes pulse-left {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes pulse-right {
  0% { right: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { right: 100%; opacity: 0; }
}

/* How It Works Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  width: 3px;
  height: 100%;
  background-color: var(--border-color);
}

.timeline-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  z-index: 10;
  position: absolute;
  left: 20px;
  box-shadow: 0 4px 10px rgba(10, 143, 122, 0.2);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px 30px;
  margin-left: 90px;
  box-shadow: 0 6px 20px var(--shadow-color);
  width: 100%;
}

.timeline-content h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 15px;
}

/* Download Section (Bottom Call to Action) */
.download-section {
  position: relative;
  background: var(--section-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.download-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.download-wrapper h2 {
  font-size: 42px;
  color: var(--text);
  margin-bottom: 18px;
}

.download-wrapper p {
  font-size: 18px;
  margin-bottom: 36px;
}

.download-badge-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

/* Footer styling */
footer {
  padding: 60px 0 40px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--surface);
  backdrop-filter: blur(12px);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.copyright {
  font-size: 13px;
  color: var(--text-secondary);
  width: 100%;
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple burger menu / mobile style could be expanded if needed, but for showcase we prioritize primary targets */
  }
  
  .hero-content h1 {
    font-size: 42px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-badge {
    left: 0;
  }
  
  .timeline-content {
    margin-left: 50px;
    padding: 20px;
  }
  
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

/* Weather Slider Demo */
.weather-demo-container {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.weather-slider-control {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}



.premium-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
  transition: background 0.3s;
}

.premium-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--slider-accent, var(--primary));
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--surface-opaque);
  transition: transform 0.1s ease, background 0.3s;
}

.premium-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.premium-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--slider-accent, var(--primary));
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--surface-opaque);
  transition: transform 0.1s ease, background 0.3s;
}

.premium-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.weather-slider-value {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

.weather-slider-value strong {
  color: var(--text);
  font-family: var(--font-title);
  font-weight: 700;
}

/* Shortcuts Automation Feature Card Styling */
.shortcut-workflow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.shortcut-workflow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.shortcut-block {
  background: var(--surface-opaque);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: transform 0.2s, border-color 0.2s;
}

.shortcut-block:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.shortcut-block-icon {
  font-size: 24px;
  width: 42px;
  height: 42px;
  background: var(--primary-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shortcut-block.action .shortcut-block-icon {
  background: var(--secondary-bg);
}

.shortcut-block-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.shortcut-block-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.shortcut-block-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.shortcut-arrow {
  font-size: 18px;
  color: var(--primary);
  font-weight: bold;
  animation: bounce-arrow 2s infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (min-width: 993px) {
  .feature-card.span-2 {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
  }
}

/* Weather Page Overlay Effects */
.weather-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.8s ease;
  overflow: hidden;
}

.weather-overlay.active {
  opacity: 1;
}

/* Background state color overlays */
.weather-overlay.state-excellent {
  background-color: rgba(255, 235, 170, 0.08);
}
.weather-overlay.state-stable {
  background-color: rgba(66, 196, 173, 0.12);
}
.weather-overlay.state-warning {
  background-color: rgba(15, 20, 40, 0.35);
}
body.dark .weather-overlay.state-warning {
  background-color: rgba(8, 10, 22, 0.65);
}

/* Rain Effect */
.rain-drop {
  position: absolute;
  background: linear-gradient(transparent, rgba(230, 242, 255, 0.9));
  width: 2px;
  height: 120px;
  opacity: 0.85;
  animation: weather-fall linear infinite;
}

@keyframes weather-fall {
  0% {
    transform: translateY(-130px) rotate(12deg);
  }
  100% {
    transform: translateY(110vh) rotate(12deg);
  }
}

/* Rain Splash effect at the bottom */
.rain-splash {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(230, 242, 255, 0.7);
  transform: scale(0);
  opacity: 0;
  animation: weather-splash 0.6s ease-out infinite;
}

@keyframes weather-splash {
  0% {
    transform: scale(0) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(-12px);
    opacity: 0;
  }
}

/* Sun Particles (Sparkles / Glowing Orbs) */
.sun-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  animation: weather-float-up ease-in-out infinite;
}

body.dark .sun-particle {
  background: rgba(255, 180, 0, 0.25);
  box-shadow: 0 0 25px rgba(255, 180, 0, 0.45);
}

@keyframes weather-float-up {
  0% {
    transform: translateY(110vh) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20vh) scale(1.2);
    opacity: 0;
  }
}

/* Rotating Sun Rays (subtle ambient glow) */
.sun-rays {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 230, 150, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: weather-pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes weather-pulse-glow {
  0% {
    transform: scale(0.9);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Floating Clouds */
.floating-cloud {
  position: absolute;
  color: rgba(66, 196, 173, 0.28);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
  animation: weather-drift linear infinite;
}

body.dark .floating-cloud {
  color: rgba(255, 255, 255, 0.14);
}

@keyframes weather-drift {
  0% {
    transform: translateX(-300px);
  }
  100% {
    transform: translateX(105vw);
  }
}

/* Tutorial Section Styles */
.tutorial-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--section-bg);
  position: relative;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.tutorial-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tuto-step-item {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px var(--shadow-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tuto-step-item:hover, .tuto-step-item.active {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--shadow-color);
  background: var(--surface-opaque);
}

.tuto-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.tuto-step-details h4 {
  font-size: 18px;
  color: var(--card-text-primary);
  margin-bottom: 4px;
}

.tuto-step-details p {
  font-size: 14px;
  color: var(--card-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.tutorial-media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 100px;
}

/* Responsive */
@media (max-width: 992px) {
  .tutorial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tutorial-media {
    position: static;
  }
}

/* Tutorial iPhone Frame adjustments to match video aspect ratio (448x976) */
.iphone-frame.tuto-frame {
  height: 697px;
}

.iphone-frame.tuto-frame .iphone-notch {
  width: 138px;
  height: 35px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  transform: translateX(calc(-50% - 3px));
}

.iphone-frame.tuto-frame .iphone-notch::before {
  top: 11px;
}

.iphone-frame.tuto-frame .iphone-notch::after {
  top: 9px;
}
