/* ============================================
   STACK & SHIELD — MAIN STYLESHEET
   ============================================ */

/* --- Variables --- */
:root {
  --navy: #0A1B2C;
  --blue: #1E3A8A;
  --teal: #10B981;
  --teal-dim: rgba(16, 185, 129, 0.15);
  --teal-glow: rgba(16, 185, 129, 0.35);
  --cyan: #22d3ee;
  --dark: #111827;
  --darker: #080D18;
  --card-bg: #0E1628;
  --gray: #9CA3AF;
  --gray-dim: #6B7280;
  --light: #F9FAFB;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--darker);
  color: var(--light);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ============================================
   HEADER / NAV
   ============================================ */
header.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 13, 24, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

header.topbar .logo img {
  height: 36px;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  color: var(--gray);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

/* ============================================
   HERO — HOME PAGE
   ============================================ */
.hero {
  position: relative;
  padding: 140px 60px 110px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Ambient gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 620px 520px at 12% 55%, rgba(16,185,129,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 520px 440px at 78% 25%, rgba(30,58,138,0.11) 0%, transparent 70%),
    radial-gradient(ellipse 380px 320px at 55% 85%, rgba(16,185,129,0.04) 0%, transparent 70%);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate(0px, 0px); }
  100% { transform: translate(30px, -20px); }
}

/* Subtle grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at center, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, black 10%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--teal-dim);
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.hero .badge .dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

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

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--teal) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > .hero-content > p {
  margin-top: 24px;
  font-size: 1.12rem;
  color: var(--gray);
  max-width: 540px;
  line-height: 1.75;
}

.hero .btn { margin-top: 38px; }

/* ============================================
   PAGE HERO — INNER PAGES
   ============================================ */
.page-hero {
  position: relative;
  padding: 108px 60px 72px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 720px 380px at 40% 0%, rgba(30,58,138,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.page-hero .badge {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--teal-dim);
  border: 1px solid rgba(16,185,129,0.22);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.page-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.page-hero > .page-hero-content > p {
  margin-top: 18px;
  font-size: 1.02rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.75;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), #0fa87a);
  color: var(--darker);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s;
  box-shadow: 0 4px 22px var(--teal-glow);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(16,185,129,0.42);
  color: var(--darker);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--light);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 0 18px var(--teal-dim);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 100px 60px;
}

.section-header {
  margin-bottom: 58px;
}

.section-header .badge {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--teal-dim);
  border: 1px solid rgba(16,185,129,0.22);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.section-header p {
  margin-top: 14px;
  color: var(--gray);
  font-size: 0.95rem;
  max-width: 580px;
  line-height: 1.75;
}

/* ============================================
   GRIDS
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Teal top-edge shine on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--teal) 50%, transparent 95%);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover::before { opacity: 1; }

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,0.2);
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal-dim);
  border: 1px solid rgba(16,185,129,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.68;
}

/* ============================================
   FLIP CARDS — PORTFOLIO
   ============================================ */
.flip-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.flip-card {
  perspective: 1000px;
  height: 250px;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

.flip-front {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
}

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

.flip-back {
  background: linear-gradient(145deg, var(--navy) 0%, #0d2240 100%);
  border: 1px solid rgba(16,185,129,0.22);
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.flip-back h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.flip-back p {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}

.stat {
  background: var(--darker);
  padding: 44px 24px;
  text-align: center;
}

.stat .number {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
}

.stat .label {
  font-size: 0.79rem;
  color: var(--gray);
  margin-top: 7px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  padding-left: 42px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--teal) 0%, rgba(16,185,129,0.08) 100%);
  border-radius: 2px;
}

.timeline-step {
  position: relative;
  margin-bottom: 20px;
  padding: 28px 28px;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: all 0.35s;
}

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

.timeline-step:hover {
  border-color: rgba(16,185,129,0.25);
  transform: translateX(5px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.timeline-step .step-number {
  position: absolute;
  left: -42px;
  top: 30px;
  width: 26px;
  height: 26px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--darker);
  box-shadow: 0 0 14px var(--teal-glow);
}

.timeline-step h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.timeline-step p {
  font-size: 0.87rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1060px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 38px 32px 36px;
  position: relative;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: rgba(16,185,129,0.35);
  background: linear-gradient(180deg, #0f1f38 0%, var(--card-bg) 100%);
  box-shadow: 0 0 44px rgba(16,185,129,0.1);
  transform: scale(1.045);
  z-index: 1;
}

.pricing-card:hover {
  border-color: rgba(16,185,129,0.28);
  box-shadow: 0 18px 48px rgba(0,0,0,0.3);
}

.pricing-card .popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: var(--darker);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 999px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-card .tier-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.pricing-card .tier-desc {
  font-size: 0.84rem;
  color: var(--gray);
  margin-bottom: 26px;
  line-height: 1.55;
}

.pricing-card .price {
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pricing-card .price .amount {
  font-family: 'Sora', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--white);
}

.pricing-card .price .period {
  font-size: 0.82rem;
  color: var(--gray-dim);
  margin-left: 3px;
}

.pricing-card .features {
  list-style: none;
  margin-bottom: 34px;
  flex-grow: 1;
}

.pricing-card .features li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.045);
  font-size: 0.87rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card .features li:last-child { border-bottom: none; }

.pricing-card .features li .check {
  color: var(--teal);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing-card .btn { width: 100%; justify-content: center; }

/* ============================================
   ADD-ONS GRID
   ============================================ */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1060px;
  margin: 0 auto;
}

/* ============================================
   KPI STRIP
   ============================================ */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-item {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}

.kpi-item:hover {
  border-color: rgba(16,185,129,0.22);
  transform: translateY(-2px);
}

.kpi-item .kpi-icon { font-size: 1.35rem; flex-shrink: 0; }

.kpi-item .kpi-label {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.4;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}

.contact-info > p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 38px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.contact-detail .cd-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-dim);
  border: 1px solid rgba(16,185,129,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail .cd-text { font-size: 0.86rem; color: var(--gray); }

.contact-detail .cd-text strong {
  color: var(--light);
  display: block;
  font-size: 0.88rem;
  margin-bottom: 2px;
  font-weight: 600;
}

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

.form-group label {
  display: block;
  font-size: 0.77rem;
  color: var(--gray-dim);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 17px;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--light);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.form-group select option {
  background: var(--card-bg);
  color: var(--light);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 100px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 760px 380px at 50% 50%, rgba(16,185,129,0.055) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 68px 56px;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
}

.cta-box h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.25;
}

.cta-box p {
  color: var(--gray);
  font-size: 0.93rem;
  max-width: 480px;
  margin: 0 auto 30px;
  line-height: 1.75;
}

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

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 78px 60px 38px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 310px;
}

.footer-col h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gray-dim);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--gray);
  font-size: 0.86rem;
  margin-bottom: 13px;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.055);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--gray-dim);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .pricing-grid       { grid-template-columns: 1fr; max-width: 440px; }
  .pricing-card.popular { transform: scale(1); }
  .stats-bar          { grid-template-columns: repeat(2, 1fr); }
  .contact-grid       { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .grid-3             { grid-template-columns: repeat(2, 1fr); }
  .kpi-strip          { grid-template-columns: repeat(2, 1fr); }
  .addons-grid        { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  header.topbar                        { padding: 16px 22px; }
  .hero, .page-hero, .section,
  .cta-section                         { padding-left: 22px; padding-right: 22px; }
  .hero h1                             { font-size: 2.4rem; }
  .page-hero h1                        { font-size: 2rem; }
  .section-header h2                   { font-size: 1.75rem; }
  .stats-bar                           { grid-template-columns: repeat(2, 1fr); }
  .footer-grid                         { grid-template-columns: 1fr; gap: 30px; }
  footer                               { padding: 56px 22px 30px; }
  nav a                                { padding: 6px 11px; font-size: 0.8rem; }
  .grid-3                              { grid-template-columns: 1fr; }
  .kpi-strip                           { grid-template-columns: 1fr 1fr; }
  .cta-box                             { padding: 44px 28px; }
}