/* ==========================================================
   SoftMail — White Tech B2B Design System
   Color Palette:
     Primary Blue:   #0057FF
     Deep Blue:      #003CC5
     Sky Blue:       #3B82F6
     Light Blue:     #60A5FA
     Accent Cyan:    #06B6D4
     Background:     #FFFFFF
     Surface:        #F0F4FF
     Card:           #FFFFFF
     Border:         #E1E8FF
     Text Dark:      #0A1628
     Text Body:      #1E3A5F
     Text Muted:     #5A7BA6
   ========================================================== */

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

:root {
  --primary:       #0057FF;
  --primary-deep:  #003CC5;
  --primary-light: #3B82F6;
  --accent:        #06B6D4;
  --accent-light:  #67E8F9;
  --bg:            #FFFFFF;
  --surface:       #F0F4FF;
  --surface2:      #E8EFFF;
  --card:          #FFFFFF;
  --border:        #DDEAFF;
  --text-dark:     #0A1628;
  --text-body:     #1E3A5F;
  --text-muted:    #5A7BA6;
  --text-light:    #92AED4;
  --gradient-1:    linear-gradient(135deg, #0057FF 0%, #06B6D4 100%);
  --gradient-2:    linear-gradient(135deg, #003CC5 0%, #0057FF 100%);
  --gradient-hero: linear-gradient(160deg, #EEF4FF 0%, #F8FBFF 40%, #EFF9FF 100%);
  --shadow-sm:     0 1px 3px rgba(0, 87, 255, 0.08), 0 1px 2px rgba(0, 87, 255, 0.04);
  --shadow-md:     0 4px 16px rgba(0, 87, 255, 0.12), 0 2px 8px rgba(0, 87, 255, 0.06);
  --shadow-lg:     0 12px 40px rgba(0, 87, 255, 0.16), 0 4px 16px rgba(0, 87, 255, 0.08);
  --shadow-xl:     0 24px 64px rgba(0, 87, 255, 0.20);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 999px; }

/* ─── LAYOUT ─────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ─── BADGE ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 87, 255, 0.08);
  border: 1px solid rgba(0, 87, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─── SECTION HEADINGS ───────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-title span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
}

.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 87, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 87, 255, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(0, 87, 255, 0.06);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(0, 87, 255, 0.06);
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(0, 87, 255, 0.12);
  border-color: var(--primary-light);
}

.btn-lg { padding: 18px 40px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

.btn-more { font-size: 11px; font-weight:600; padding: 3px; border-radius: 5px; background: rgba(0, 87, 255, 0.06); }

/* ─── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 87, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-logo .logo-text span { color: var(--primary); }

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 87, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge { margin-bottom: 24px; }

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero h1 .highlight {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label { font-size: 13px; color: var(--text-muted); }

/* Hero Visual */
.hero-visual { position: relative; }

.hero-card-main {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero-card-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
}

.mail-ui-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.mail-ui-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.mail-ui-title { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.mail-ui-sub { font-size: 12px; color: var(--text-muted); }

.mail-ui-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #10B981;
}

.mail-ui-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

.mail-ui-rows { display: flex; flex-direction: column; gap: 10px; }

.mail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: var(--transition);
}

.mail-row:hover { background: var(--surface2); }
.mail-row.active { background: rgba(0, 87, 255, 0.06); border: 1px solid rgba(0, 87, 255, 0.15); }

.mail-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  flex-shrink: 0;
}

.mail-row-dot.spam { background: #EF4444; }
.mail-row-dot.secure { background: #10B981; }

.mail-row-content { flex: 1; min-width: 0; }
.mail-row-from { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.mail-row-subject { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row-tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.mail-row-tag.blocked { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.mail-row-tag.safe { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.mail-row-tag.new { background: rgba(0, 87, 255, 0.1); color: var(--primary); }

/* Floating badges on hero visual */
.hero-float-1 {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float-y 4s ease-in-out infinite;
}

.hero-float-2 {
  position: absolute;
  bottom: 20px;
  left: -30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float-y 4s ease-in-out infinite 2s;
}

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

.float-icon { font-size: 24px; }
.float-value { font-size: 18px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.float-label { font-size: 11px; color: var(--text-muted); }

/* ─── TICKER ─────────────────────────────────────────── */
.ticker-wrap {
  background: var(--primary-deep);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
}

.ticker-item .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── STATS BAR ──────────────────────────────────────── */
.stats-bar {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--surface); }

.stat-number {
  font-size: 40px;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ─── SERVICE CARDS ──────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: rgba(0, 87, 255, 0.25);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(0, 87, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-1);
  transform: scale(1.05);
}

.service-title { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }

.service-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-body);
}

.service-features li::before {
  content: '✓';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 87, 255, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 24px;
  transition: gap 0.2s;
}

.service-link:hover { gap: 10px; }

/* ─── ICEWARP FEATURE SECTION ────────────────────────── */
.icewarp-section { background: var(--surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ─── VALUE PROPOSITION ──────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 0;
}

.value-list { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }

.value-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.value-item:hover {
  border-color: rgba(0, 87, 255, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 87, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.value-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.value-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* Mockup Visual */
.value-visual {
  position: relative;
}

.mockup-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.mockup-bar {
  background: var(--surface);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #28CA41; }

.mockup-url {
  flex: 1;
  background: rgba(0, 87, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 12px;
}

.mockup-body { padding: 24px; }

.mockup-sidebar-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  height: 320px;
}

.mockup-sidebar {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-sidebar-item {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-sidebar-item.active {
  background: rgba(0, 87, 255, 0.1);
  color: var(--primary);
}

.mockup-sidebar-item .icon { font-size: 14px; }

.mockup-main-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-email-row {
  background: var(--surface);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.mockup-email-row.unread { background: rgba(0, 87, 255, 0.04); border-left: 2px solid var(--primary); }

.unread-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.email-info { flex: 1; min-width: 0; }
.email-sender { font-size: 11px; font-weight: 700; color: var(--text-dark); }
.email-subject { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.email-time { font-size: 10px; color: var(--text-light); flex-shrink: 0; }

/* ─── PARTNERS ───────────────────────────────────────── */
.partners-section { background: var(--surface); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.partner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.partner-card:hover {
  border-color: rgba(0, 87, 255, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.partner-logo-wrap {
  width: 80px;
  height: 80px;
  background: var(--surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid var(--border);
  font-size: 40px;
  transition: var(--transition);
}

.partner-card:hover .partner-logo-wrap {
  background: rgba(0, 87, 255, 0.06);
  border-color: rgba(0, 87, 255, 0.2);
}

.partner-name { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.partner-origin { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.partner-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ─── HISTORY SECTION ────────────────────────────────── */
.history-section { background: var(--bg); }

.history-timeline {
  position: relative;
  max-width: 800px;
  margin: 56px auto 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: translateX(-50%);
}

.timeline-group { margin-bottom: 56px; }

.timeline-era {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.timeline-era-label {
  display: inline-block;
  background: var(--gradient-1);
  color: white;
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.timeline-items { display: flex; flex-direction: column; gap: 16px; }

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  gap: 24px;
  align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content { grid-column: 1; text-align: right; }
.timeline-item:nth-child(odd) .timeline-empty { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; text-align: left; }
.timeline-item:nth-child(even) .timeline-empty { grid-column: 1; }

.timeline-dot {
  grid-column: 2;
  grid-row: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.2);
  justify-self: center;
  z-index: 1;
}

.timeline-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(0, 87, 255, 0.25);
  box-shadow: var(--shadow-sm);
}

.timeline-date { font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.timeline-event { font-size: 13px; color: var(--text-body); }

/* ─── CTA SECTION ────────────────────────────────────── */
.cta-section {
  background: var(--gradient-2);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
}

.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  background: white;
  color: var(--primary-deep);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-white-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.6);
}

.footer-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.footer-brand-desc { font-size: 13px; line-height: 1.7; margin-bottom: 24px; }

.footer-social { display: flex; gap: 10px; }

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
}

.social-btn:hover { background: var(--primary); color: white; }

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 12px; }
.footer-biz { font-size: 11px; color: rgba(255, 255, 255, 0.35); line-height: 1.8; }

/* ─── CERTIFICATIONS BAR ─────────────────────────────── */
.cert-badges { display: flex; gap: 10px; flex-wrap: wrap; }

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 87, 255, 0.2);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(0, 87, 255, 0.05);
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fade-in 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Intersection Observer triggered */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── PAGE HERO (sub-pages) ──────────────────────────── */
.page-hero {
  background: var(--gradient-hero);
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--border);
}

.page-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.page-hero-desc { font-size: 18px; color: var(--text-muted); max-width: 500px; }

/* ─── FORMS ──────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* ─── PLAN CARDS ─────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.plan-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  position: relative;
}

.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-1);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.plan-name { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.plan-price { font-size: 32px; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.plan-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li { font-size: 13px; color: var(--text-body); display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '✓'; color: var(--primary); font-weight: 700; }

/* ─── CONTACT INFO CARDS ─────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover { border-color: rgba(0, 87, 255, 0.2); box-shadow: var(--shadow-md); }

.contact-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 87, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.contact-type { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.contact-value { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.contact-note { font-size: 12px; color: var(--text-muted); }

/* ─── MOBILE MENU ────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 999;
  padding: 24px;
}

.mobile-menu.open { display: block; }

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.mobile-nav-links a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

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

/* ─── UTILITIES ──────────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-float-1, .hero-float-2 { display: none; }
  .hero { min-height: auto; padding: 120px 0 80px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-main { grid-template-columns: 1fr; gap: 48px; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 64px 0; }
  .hero h1 { font-size: 36px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 28px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-links-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline-line { left: 24px; transform: none; }
  .timeline-item { grid-template-columns: 24px 1fr; }
  .timeline-item:nth-child(odd) .timeline-content { grid-column: 2; text-align: left; }
  .timeline-dot { grid-column: 1; width: 10px; height: 10px; }
  .timeline-empty { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
}
