/* ========================================
   MODIH MAIL — Dreamy Nature-Inspired Styles
   ======================================== */

:root {
  --bg-dark: #0a0a0f;
  --glass-bg: rgba(30, 25, 20, 0.65);
  --glass-bg-hover: rgba(45, 38, 30, 0.75);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(212, 167, 106, 0.3);
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.55);
  --accent: #d4a76a;
  --accent-glow: rgba(212, 167, 106, 0.35);
  --accent-secondary: #e8cfa0;
  --accent-warm: #c8956a;
  --danger: #f87171;
  --success: #34d399;
  --warning: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== RESET ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========== BACKGROUND MEDIA ========== */
.bg-media {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-desktop {
  display: block;
}

.bg-mobile {
  display: none;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.05),
    rgba(0,0,0,0.3)
  );
}

.mail-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.7) 0%,
    rgba(10, 10, 15, 0.5) 50%,
    rgba(10, 10, 15, 0.7) 100%
  );
}

.mail-bg {
  z-index: 99;
}

@media (max-width: 768px) {
  .bg-desktop { display: none; }
  .bg-mobile { display: block; }
}

/* ========== GLASS UTILITIES (only for cards/buttons) ========== */
.glass-subtle {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(212, 167, 106, 0.15);
}

.glass-card-large {
  background: rgba(30, 30, 40, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
}

.glass-card-mini {
  background: rgba(20, 20, 30, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
}

.glass-pill {
  display: inline-block;
  background: rgba(212, 167, 106, 0.18);
  border: 1px solid rgba(212, 167, 106, 0.4);
  border-radius: 100px;
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffe6b0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ========== NAVIGATION (Single Glass Pill Style) ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  background: transparent;
  pointer-events: none; /* Let clicks pass through the transparent part */
}

/* Translucent backdrop when scrolled */
.nav.scrolled {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  pointer-events: auto; /* Re-enable clicks for items inside nav */
}

/* Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.nav-brand:hover {
  transform: scale(1.05);
}

.nav-brand:hover .brand-icon {
  animation: brandBounce 0.5s ease;
}

@keyframes brandBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-8deg); }
  50% { transform: translateY(0) rotate(8deg); }
  75% { transform: translateY(-2px) rotate(-4deg); }
}

.brand-icon {
  font-size: 1.6rem;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: transform 0.4s ease;
}

.brand-icon::after {
  content: attr(data-closed);
}

.nav-brand:hover .brand-icon {
  animation: envelopeOpen 0.5s ease forwards;
}

.nav-brand:hover .brand-icon::after {
  content: attr(data-open);
}

@keyframes envelopeOpen {
  0% { transform: scale(1) rotateY(0deg); }
  40% { transform: scale(1.2) rotateY(90deg); }
  60% { transform: scale(1.2) rotateY(90deg); }
  100% { transform: scale(1.15) rotateY(0deg); }
}
.brand-logo {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.brand-text {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(90deg, #FFD700, #F59E0B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Lightened shadow for readability */
}

/* Single Pill Container for Links */
.nav-links {
  display: flex;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 2rem;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FFD700, #F59E0B);
  border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-link:hover, .nav-link.active {
  color: rgba(255, 255, 255, 0.9);
}

/* Nav CTA — Solid White Button */
.nav-cta {
  background: #ffffff;
  color: #111111;
  padding: 0.7rem 1.4rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.nav-cta:active {
  transform: translateY(0) scale(0.95);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
}

/* ========== SECTIONS ========== */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.section-tag {
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ========== HERO ========== */
.hero-section {
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 850px;
  margin: 0 auto;
}

/* "New" pill badge */
.new-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 0.45rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
}

.hero-tag-pill-container {
  width: 100%;
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 0.3rem 1.2rem 0.3rem 0.3rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.hero-tag-pill.small-pill {
  padding: 0.2rem 0.8rem 0.2rem 0.2rem;
  margin-bottom: 1.5rem;
}

.hero-tag-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.new-badge-inner {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.new-text {
  color: #111111;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #34d399; /* Green dot */
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  animation: pulse-dot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

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

.tag-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-line-1 {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 5rem);
  color: #C8E6FF;
  text-shadow: 0 4px 20px rgba(100, 180, 255, 0.35), 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1.15;
  letter-spacing: 0.02em;
  animation: heroLineIn 0.8s ease both;
  animation-delay: 0.2s;
}

.hero-line-2 {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(4rem, 10vw, 7.5rem);
  color: #A8F0C6;
  text-shadow: 0 4px 20px rgba(100, 220, 160, 0.4), 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1.1;
  padding: 0.1em 0;
  letter-spacing: -0.01em;
  animation: heroLineIn 0.8s ease both;
  animation-delay: 0.5s;
}

.hero-line-3 {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.5rem, 8vw, 6rem);
  color: #B8C8FF;
  text-shadow: 0 4px 20px rgba(130, 150, 255, 0.35), 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1;
  letter-spacing: 0.01em;
  animation: heroLineIn 0.8s ease both;
  animation-delay: 0.8s;
}

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Typewriter elements hidden initially */
.typewriter {
  visibility: hidden;
}

.hero-subtitle {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 3px 15px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.subtitle-word {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  color: #ffe6b0;
  font-size: 1.15em;
  text-shadow: 0 2px 15px rgba(212, 167, 106, 0.4);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}



/* ========== HERO STAT BOXES (translucent glass) ========== */
/* ========== HERO STATS BUBBLE (Expanding Hover Style) ========== */
.stats-bubble-wrapper {
  position: relative;
  display: inline-flex;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  height: 50px;
  background: rgba(40, 45, 60, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 160px; /* Initial collapsed width */
  cursor: default;
}

.stats-bubble-wrapper:hover {
  width: 520px; /* Expanded width */
  background: rgba(50, 55, 75, 0.85);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.stats-bubble-trigger {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stats-bubble-wrapper:hover .stats-bubble-trigger {
  opacity: 0;
  visibility: hidden;
}

.stats-bubble-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 520px;
  height: 100%;
  padding: 0 2rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0s;
}

.stats-bubble-wrapper:hover .stats-bubble-content {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0.1s;
}

.bubble-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bubble-line {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
}

.bubble-stat .stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #d4a76a; /* Gold accent */
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  line-height: 1;
}

.bubble-stat .stat-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ========== HERO BOTTOM BAR ========== */
.hero-bottom-bar {
  width: 100%;
  text-align: center;
  z-index: 2;
  margin-top: 4rem;
}

.collaborating-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0rem;
  background: rgba(40, 45, 60, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: inline-block;
  padding: 0.4rem 1.5rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 3;
}

.scroll-indicator:hover { opacity: 1; }

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 30px; }
  50% { opacity: 1; height: 40px; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--bounce);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.btn:active {
  transform: scale(0.95) !important;
  transition-duration: 0.1s;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: rgba(20, 20, 30, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  background: rgba(20, 20, 30, 0.65);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

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

/* Clear CTA button — translucent clear glass */
.btn-warm {
  background: rgba(37, 99, 235, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.btn-warm:hover {
  background: rgba(10, 10, 15, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.6);
}

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

.btn-ghost-warm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  background: rgba(37, 99, 235, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost-warm:hover {
  color: #fff;
  background: rgba(10, 10, 15, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.6);
}

.glow-btn {
  position: relative;
  overflow: hidden;
}

.glow-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.glow-btn:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(20, 20, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover {
  background: rgba(20, 20, 30, 0.55);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 0.85rem 1.5rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.btn-ghost.danger {
  color: var(--danger);
}

.btn-ghost.danger:hover {
  background: rgba(248,113,113,0.1);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(20, 20, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  background: rgba(20, 20, 30, 0.6);
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
  transform: scale(1.1);
}

.icon-btn.danger:hover {
  background: rgba(248,113,113,0.15);
  border-color: rgba(248,113,113,0.3);
  color: var(--danger);
}

.icon-btn.small {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.glass-btn {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ========== FEATURES GRID ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-card {
  padding: 2rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 167, 106, 0.3);
}

.feature-card:hover .feature-icon {
  border-color: rgba(212, 167, 106, 0.5);
  background: rgba(212, 167, 106, 0.18);
  transform: scale(1.08);
}

.feature-card:hover h3 {
  transform: translateX(4px);
  color: #ffe6b0;
}

@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(212, 167, 106, 0.1);
  border: 1px solid rgba(212, 167, 106, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.feature-card h3 {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ========== GENERATE SECTION ========== */
.generate-section .section-inner {
  text-align: center;
}

.generate-section .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.generate-box {
  max-width: 560px;
  margin: 0 auto 2rem;
}

.input-group {
  margin-bottom: 1.25rem;
}

.email-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(30, 30, 40, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.email-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-domain {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(212, 167, 106, 0.08);
  border-left: 1px solid var(--glass-border);
  white-space: nowrap;
}

.generate-actions {
  display: flex;
  gap: 0.75rem;
}

.generate-actions .btn-primary {
  flex: 1;
  justify-content: center;
  padding: 1rem;
  background: rgba(30, 30, 40, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.generate-actions .btn-primary:hover {
  background: rgba(40, 40, 55, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.error-msg {
  margin-top: 1rem;
  color: var(--danger);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--radius-sm);
}

/* ========== EMAIL RESULT ========== */
.email-result {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  animation: slideUp 0.5s ease;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.countdown {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.countdown.warning { color: var(--warning); }
.countdown.danger { color: var(--danger); }

.result-email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.result-email {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), #f5e6c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-all;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.result-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== MAIL WINDOW ========== */
.mail-window {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mail-window.active {
  opacity: 1;
  transform: scale(1);
}

.mail-container {
  position: relative;
  z-index: 101;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mail-header {
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mail-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mail-header-info {
  display: flex;
  flex-direction: column;
}

.mail-header-email {
  font-weight: 600;
  font-size: 0.95rem;
}

.mail-header-timer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.mail-header-actions {
  display: flex;
  gap: 0.5rem;
}

.mail-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* ========== MAIL LIST ========== */
.mail-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(20, 20, 30, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: mailItemIn 0.4s ease both;
}

@keyframes mailItemIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mail-item:hover {
  background: rgba(30, 30, 45, 0.7);
  border-color: rgba(212, 167, 106, 0.25);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.mail-item-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.mail-item-content {
  flex: 1;
  min-width: 0;
}

.mail-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.mail-item-from {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-item-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.mail-item-subject {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-item-otp {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.65rem;
  background: rgba(212, 167, 106, 0.12);
  border: 1px solid rgba(212, 167, 106, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

/* ========== MAIL EMPTY STATE ========== */
.mail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.mail-empty-icon {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

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

.mail-empty h3 {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.mail-empty p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.mail-empty-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.loading-dots {
  display: flex;
  gap: 6px;
  margin-top: 1.5rem;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* ========== MESSAGE DETAIL ========== */
.mail-detail {
  animation: slideUp 0.3s ease;
}

.mail-back-btn {
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
}

.detail-header {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.detail-subject {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-from {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-otp {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(212, 167, 106, 0.1);
  border: 1px solid rgba(212, 167, 106, 0.25);
  border-radius: var(--radius-sm);
}

.otp-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.otp-code {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Inter', monospace;
  color: var(--text-primary);
  letter-spacing: 0.15em;
}

.detail-body {
  padding: 1.5rem;
  min-height: 200px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-wrap: break-word;
  word-break: break-word;
}

.detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.detail-body a {
  color: var(--accent);
  text-decoration: underline;
}

.detail-body table {
  max-width: 100%;
  border-collapse: collapse;
}

.detail-body td, .detail-body th {
  padding: 0.5rem;
  border: 1px solid var(--glass-border);
}

.detail-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 0.85rem 1.5rem;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--text-primary);
  animation: toastIn 0.3s ease;
  white-space: nowrap;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.footer-brand p {
  margin-bottom: 0.25rem;
  color: #fff;
}

.footer-author {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin-left: 0.2rem;
}

.footer-subtext {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.footer-link:hover {
  color: #FFD700;
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(255,215,0,0.3);
}

/* ========== ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .section {
    padding: 5rem 1.25rem;
  }

  .hero-section {
    padding-top: 6rem;
  }

  .hero-line-1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-line-2 {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }

  .hero-line-3 {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 0.5rem;
    line-height: 1.7;
  }

  .hero-tag-pill.small-pill {
    padding: 0.15rem 0.6rem 0.15rem 0.15rem;
  }

  .tag-text {
    font-size: 0.7rem;
  }

  .brand-icon {
    font-size: 1.3rem;
  }

  .brand-text {
    font-size: 1.4rem;
  }

  .nav-links {
    padding: 0.4rem 1rem;
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .nav-cta {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-warm, .btn-ghost-warm {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    gap: 0.75rem;
  }

  .stat-item {
    min-width: 90px;
    padding: 0.75rem 1rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .glass-card-large {
    padding: 1.5rem;
  }

  .generate-actions {
    flex-direction: column;
  }

  .email-domain {
    font-size: 0.95rem;
    padding: 0.85rem 0.75rem;
  }

  .email-input {
    font-size: 1rem;
    padding: 0.85rem;
  }

  .mail-header {
    padding: 0.75rem 1rem;
  }

  .mail-body {
    padding: 1rem;
  }

  .mail-header-actions {
    gap: 0.35rem;
  }

  .result-email {
    font-size: 1.2rem;
  }

  .scroll-indicator {
    display: none;
  }

  .hero-bottom-bar {
    bottom: 2rem;
  }

  .footer-content {
    padding: 0 1rem;
  }

  .footer-links {
    gap: 1rem;
  }

  .partner-logos {
    gap: 1.5rem;
  }

  .partner-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .mail-item {
    padding: 1rem;
    gap: 0.75rem;
  }

  .mail-item-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .detail-subject {
    font-size: 1.2rem;
  }

  .nav-inner {
    padding: 0 1rem;
  }

  .partner-logos {
    gap: 1rem;
  }

  .partner-name {
    font-size: 0.95rem;
  }
}

/* ========== BUTTON LOADING STATE ========== */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading span {
  opacity: 0;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Refresh spin animation */
.spinning svg {
  animation: spin 0.8s linear infinite;
}
