/* ===================================
   みらい残高 - Landing Page Styles
   =================================== */

/* CSS Variables */
:root {
  --primary: #2196F3;
  --primary-dark: #1976D2;
  --primary-light: #BBDEFB;
  --primary-gradient: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  --secondary: #FF6B6B;
  --accent: #4ECDC4;
  --success: #4CAF50;
  --warning: #FF9800;

  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-light: #8a8aa0;
  --text-white: #ffffff;

  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #e8f4fc 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 10px 40px rgba(33, 150, 243, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  --font-sans: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Poppins', 'Noto Sans JP', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.section-header p {
  max-width: 600px;
  margin: 24px auto 0;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(33, 150, 243, 0.4);
  color: var(--text-white);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-white);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ===================================
   Header & Navigation
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-normal);
}

.nav a:hover {
  color: var(--primary);
}

.nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-gradient);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(78, 205, 196, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: slideInLeft 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  animation: scaleIn 1s ease-out 0.3s both;
}

.hero-phone {
  position: relative;
  width: 300px;
  height: 600px;
  margin: 0 auto;
}

.phone-frame {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1a1a2e 0%, #2d2d44 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 20px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.phone-screen-content h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.phone-screen-content .balance {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.phone-screen-content .date {
  font-size: 0.9rem;
  opacity: 0.8;
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}

.floating-card-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 20%;
  left: -30px;
  animation-delay: 1s;
}

.floating-card-3 {
  bottom: 35%;
  right: -40px;
  animation-delay: 2s;
}

.floating-card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.floating-card .card-icon.income {
  background: rgba(76, 175, 80, 0.1);
  color: var(--success);
}

.floating-card .card-icon.expense {
  background: rgba(255, 107, 107, 0.1);
  color: var(--secondary);
}

.floating-card .card-icon.calendar {
  background: rgba(33, 150, 243, 0.1);
  color: var(--primary);
}

.floating-card .card-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.floating-card .card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===================================
   Features Section
   =================================== */
.features {
  background: var(--bg-white);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  background: var(--primary-gradient);
  transform: scale(1.1);
}

.feature-card:hover .feature-icon span {
  filter: brightness(0) invert(1);
}

.feature-card h4 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works {
  background: var(--bg-gradient);
  position: relative;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 20%;
  right: 20%;
  height: 4px;
  background: var(--primary-light);
  z-index: 0;
}

.step {
  flex: 1;
  max-width: 320px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-primary);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px dashed var(--primary-light);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.step h4 {
  margin-bottom: 12px;
}

.step p {
  font-size: 1rem;
}

/* ===================================
   Premium Section
   =================================== */
.premium {
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.03) 0%, rgba(78, 205, 196, 0.03) 100%);
  pointer-events: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  border: 2px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'おすすめ';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-icon {
  width: 72px;
  height: 72px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.pricing-card.featured .pricing-icon {
  background: var(--primary-gradient);
}

.pricing-card.featured .pricing-icon span {
  filter: brightness(0) invert(1);
}

.pricing-card h4 {
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.pricing-card .price-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* ===================================
   Download Section
   =================================== */
.download {
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.download .container {
  position: relative;
  z-index: 1;
}

.download h2 {
  color: white;
  margin-bottom: 16px;
}

.download h2::after {
  background: white;
}

.download p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 24px auto 40px;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
  color: white;
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  color: white;
}

.store-badge .store-icon {
  font-size: 2rem;
}

.store-badge .store-text {
  text-align: left;
}

.store-badge .store-text small {
  font-size: 0.75rem;
  opacity: 0.8;
  display: block;
}

.store-badge .store-text span {
  font-size: 1.1rem;
  font-weight: 600;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  background: var(--primary);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h5 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: white;
}

/* ===================================
   Legal Pages (Privacy Policy, Terms)
   =================================== */
.legal-page {
  padding-top: 100px;
}

.legal-header {
  background: var(--bg-gradient);
  padding: 60px 0;
  text-align: center;
}

.legal-header h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.legal-header .last-updated {
  color: var(--text-light);
  font-size: 0.95rem;
}

.legal-content {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.contact-box {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
}

.contact-box h3 {
  margin-top: 0;
}

.contact-box a {
  font-weight: 600;
}

/* ===================================
   Responsive Design
   =================================== */

/* --- Desktop (1024px+) --- */
/* Default styles apply */

/* --- Tablet (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 32px;
  }

  .section {
    padding: 80px 0;
  }

  /* Header */
  .nav {
    gap: 20px;
  }

  .nav .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-phone {
    width: 240px;
    height: 480px;
  }

  .floating-card-1 {
    right: calc(50% - 200px);
    top: 10%;
  }
  .floating-card-2 {
    left: calc(50% - 200px);
    bottom: 25%;
  }
  .floating-card-3 {
    right: calc(50% - 220px);
    bottom: 40%;
  }

  /* Features */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  /* How It Works */
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .steps::before {
    display: none;
  }

  .step {
    max-width: 400px;
  }

  /* Premium */
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .pricing-card {
    padding: 32px 20px;
  }

  .pricing-card.featured {
    transform: scale(1.03);
  }

  .pricing-card .price {
    font-size: 2rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }

  /* Legal Pages */
  .legal-header {
    padding: 50px 0;
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .legal-content {
    padding: 50px 0;
  }
}

/* --- Smartphone (320px - 767px) --- */
@media (max-width: 767px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  /* Header */
  .header {
    padding: 12px 0;
  }

  .header.scrolled {
    padding: 10px 0;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-phone {
    width: 180px;
    height: 360px;
  }

  .phone-frame {
    border-radius: 28px;
    padding: 8px;
  }

  .phone-frame::before {
    width: 50px;
    height: 16px;
    top: 12px;
  }

  .phone-screen {
    border-radius: 22px;
    padding: 24px 12px;
  }

  .phone-screen-content h3 {
    font-size: 1rem;
  }

  .phone-screen-content .balance {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .phone-screen-content .date {
    font-size: 0.8rem;
  }

  .floating-card {
    padding: 10px 12px;
    font-size: 0.75rem;
    border-radius: 12px;
  }

  .floating-card .card-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .floating-card .card-label {
    font-size: 0.65rem;
  }

  .floating-card .card-value {
    font-size: 0.85rem;
  }

  .floating-card-1 {
    right: 5%;
    top: 5%;
  }
  .floating-card-2 {
    left: 5%;
    bottom: 30%;
  }
  .floating-card-3 {
    right: 0;
    bottom: 45%;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .feature-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  .feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .feature-card p {
    font-size: 0.95rem;
  }

  /* How It Works */
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .steps::before {
    display: none;
  }

  .step {
    max-width: 100%;
  }

  .step-number {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .step-number::after {
    inset: -6px;
  }

  .step-icon {
    font-size: 2rem;
    margin-bottom: 12px;
  }

  .step h4 {
    font-size: 1.1rem;
  }

  .step p {
    font-size: 0.95rem;
  }

  /* Premium */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .pricing-card.featured::before {
    font-size: 0.8rem;
    padding: 5px 16px;
  }

  .pricing-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }

  .pricing-card h4 {
    font-size: 1.2rem;
  }

  .pricing-card .price {
    font-size: 2.2rem;
    margin: 12px 0;
  }

  .pricing-card .price span {
    font-size: 0.9rem;
  }

  .pricing-features li {
    padding: 10px 0;
    font-size: 0.9rem;
  }

  /* Download */
  .download {
    padding: 60px 0;
  }

  .download h2 {
    font-size: 1.75rem;
  }

  .download p {
    font-size: 1rem;
    margin: 20px auto 32px;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .store-badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 14px 24px;
  }

  .store-badge .store-icon {
    font-size: 1.5rem;
  }

  .coming-soon {
    font-size: 0.85rem;
    padding: 6px 16px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-brand p {
    max-width: none;
    margin: 0 auto;
  }

  .footer-links h5 {
    margin-bottom: 16px;
  }

  .footer-links li {
    margin-bottom: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding-top: 24px;
  }

  /* Legal Pages */
  .legal-page {
    padding-top: 80px;
  }

  .legal-header {
    padding: 40px 0;
  }

  .legal-header h1 {
    font-size: 1.75rem;
  }

  .legal-header .last-updated {
    font-size: 0.85rem;
  }

  .legal-content {
    padding: 40px 0;
  }

  .legal-content h2 {
    font-size: 1.25rem;
    margin: 36px 0 12px;
  }

  .legal-content h3 {
    font-size: 1.1rem;
    margin: 24px 0 10px;
  }

  .legal-content p {
    font-size: 0.95rem;
  }

  .legal-content ul, .legal-content ol {
    padding-left: 20px;
  }

  .legal-content li {
    font-size: 0.95rem;
  }

  .contact-box {
    padding: 24px 20px;
    margin: 32px 0;
  }

  .contact-box h3 {
    font-size: 1.1rem;
  }
}

/* --- Extra Small Smartphone (320px - 374px) --- */
@media (max-width: 374px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-phone {
    width: 160px;
    height: 320px;
  }

  .floating-card {
    display: none;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .pricing-card {
    padding: 28px 20px;
  }

  .pricing-card .price {
    font-size: 2rem;
  }
}

/* Mobile Navigation Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px 24px;
  transition: all var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .feature-card:hover,
  .pricing-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .feature-card:active,
  .pricing-card:active {
    transform: scale(0.98);
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.98);
  }
}

/* Landscape phone orientation */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    padding: 80px 0 40px;
  }

  .hero .container {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    order: 0;
    text-align: left;
  }

  .hero-visual {
    order: 1;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-phone {
    width: 140px;
    height: 280px;
  }

  .floating-card {
    display: none;
  }
}

/* Print styles */
@media print {
  .header,
  .mobile-nav,
  .hero-visual,
  .download,
  .footer {
    display: none;
  }

  .section {
    padding: 20px 0;
  }

  .legal-page {
    padding-top: 0;
  }
}
