:root {
  --bg-color: #03040A; 
  --surface-color: #09090E;
  --surface-hover: #111116;
  --surface-border: rgba(255, 255, 255, 0.08);
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA; 
  --text-muted: #52525B; 
  
  --accent-color: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #2563eb, #8b5cf6);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { 
  scroll-behavior: smooth; 
  scroll-snap-type: y mandatory; 
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background effects */
.background-effects {
  position: absolute; top: 0; left: 0; width: 100%; height: 110vh;
  pointer-events: none; z-index: -1;
  background: url('https://theinvincia.com/wp-content/uploads/2026/03/invincia_dark_wave_bg_1774000270758.jpg') no-repeat;
  /* Anchor to bottom-left and aggressively scale height to steepen the rightward slope to the top border */
  background-position: left bottom;
  background-size: 100vw 130vh;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}


.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* NAVBAR (Premium Floating Glass) */
.navbar {
  position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 1280px; z-index: 100;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background 0.3s ease;
}

.navbar.navbar-hidden {
  transform: translate(-50%, -120%);
  opacity: 0;
  pointer-events: none;
}

.navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 1.5rem; }
.logo { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.05em; color: #fff; text-decoration: none; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }

/* SECTIONS */
.section { 
    padding: 100px 0; 
    position: relative; 
    z-index: 1; 
    scroll-snap-align: center; 
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.bg-subtle { background-color: rgba(255, 255, 255, 0.015); border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.section-header { margin-bottom: 4rem; max-width: 600px; }
.section-header.flex-between { max-width: 100%; display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.section-title { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 700px; }

/* REVEAL ON SCROLL */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* GRIDS */
.grid { display: grid; gap: 2rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 4rem; }

/* UTILS */
.mt-4 { margin-top: 1.5rem; }
.mt-8 { margin-top: 3rem; display: inline-block; }
.text-center { text-align: center; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.75rem; border-radius: 100px;
  font-weight: 500; font-size: 0.95rem; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer; text-decoration: none; font-family: var(--font-body);
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--accent-gradient); color: #fff; border: none; box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.3); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.5); filter: brightness(1.1); color: #fff; }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--glass-border); }
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255,255,255,0.08); transform: translateY(-3px) scale(1.02); }
.btn-large { padding: 1.125rem 2.5rem; font-size: 1.125rem; }

/* Shimmer Effect for Buttons */
.btn::after {
  content: ''; position: absolute; top: -50%; left: -100%; width: 50%; height: 200%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
  transform: rotate(25deg); transition: none;
}
.btn:hover::after { left: 150%; transition: all 0.6s ease; }

/* HERO SECTION */
.hero-section {
  padding-top: clamp(80px, 10vh, 110px); padding-bottom: clamp(40px, 6vh, 80px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; max-width: 1320px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  min-height: 100vh;
}
.hero-headline { font-family: var(--font-heading); font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.5rem; background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subheadline { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2rem; font-weight: 400; max-width: 90%; }
.capability-line { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 2.5rem; }
.cta-group { display: flex; gap: 1rem; align-items: center; }

/* HERO RIGHT SHOWCASE */
.hero-showcase { position: relative; animation: slideInUp 0.8s ease-out forwards; }
@keyframes slideInUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
.showcase-label { font-family: var(--font-heading); font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.25rem; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; display: flex; align-items: center; gap: 0.5rem; }
.showcase-label::before { content: ""; display: block; width: 24px; height: 1px; background-color: var(--text-muted); }
.showcase-card { 
  border-radius: 24px; 
  overflow: hidden; 
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5); 
  background: #0A0A0A; 
  position: relative; 
  aspect-ratio: 16/9;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.showcase-card:hover {
  transform: scale(1.015);
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
}
.showcase-card iframe, .showcase-card img { width: 100%; height: 100%; display: block; object-fit: cover; border: none; }

/* Dark Overlay on Video */
.video-dark-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

/* Glassmorphism Overlay Panel */
.showcase-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.showcase-text-block { max-width: 70%; }
.showcase-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}
.showcase-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Pill Glass Button */
.btn-glass-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-glass-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}
.showcase-card:hover .btn-glass-pill {
  border-color: rgba(255, 255, 255, 0.3);
}

/* LABEL PILL */
.label-small { display: inline-flex; align-items: center; padding: 0.4rem 0.875rem; border-radius: 100px; background: var(--glass-bg); border: 1px solid var(--glass-border); font-size: 0.875rem; font-weight: 500; margin-bottom: 1.25rem; color: #E4E4E7; }

/* WHAT WE BUILD CARDS */
.service-card { 
    padding: 2.5rem 2rem; 
    border-radius: 16px; 
    border: 1px solid var(--surface-border); 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    background-color: var(--surface-color); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    min-height: 240px; 
    position: relative; 
    text-decoration: none;
}
.service-card:hover { 
    border-color: rgba(59, 130, 246, 0.4); 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6); 
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.05));
}
.card-title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.75rem; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.card-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; }

.card-link { 
    font-size: 0.9rem; font-weight: 600; color: var(--accent-color); opacity: 0; transform: translateY(10px); transition: all 0.3s ease; 
    display: flex; align-items: center; gap: 8px; margin-top: auto;
}
.service-card:hover .card-link { opacity: 1; transform: translateY(0); }

/* PREMIUM INVINCIA METHOD SECTION */
.premium-method-section { 
    padding: 100px 0; 
    background: radial-gradient(circle at right top, rgba(37, 99, 235, 0.05), transparent 40%); 
    border-top: 1px solid var(--surface-border); 
    border-bottom: 1px solid var(--surface-border); 
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.method-layout { display: grid; grid-template-columns: 4fr 6fr; gap: 6rem; align-items: stretch; }

.sidebar-sticky { position: relative; top: 0; }
.method-features { margin-top: 3rem; display: flex; flex-direction: column; gap: 2rem; }
.feature-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.2); display: flex; align-items: center; justify-content: center; color: var(--accent-color); flex-shrink: 0; }
.feature-title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; }
.feature-item p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; margin: 0; }

.method-timeline { position: relative; padding-left: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; height: 100%; gap: 1.5rem; }
.v-line { position: absolute; top: 1.5rem; bottom: 1.5rem; left: 0; width: 2px; background: linear-gradient(180deg, rgba(37, 99, 235, 0.5) 0%, rgba(37, 99, 235, 0.1) 100%); border-radius: 2px; }
.v-step { position: relative; display: flex; align-items: stretch; flex: 1; }
.v-dot { position: absolute; left: -2.95rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--bg-color); border: 3px solid var(--accent-color); box-shadow: 0 0 16px rgba(37, 99, 235, 0.3); z-index: 2; transition: all 0.4s; }
.v-card { display: flex; flex-direction: column; justify-content: center; background: var(--surface-color); border: 1px solid var(--surface-border); padding: 1.75rem 2.5rem; border-radius: 16px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 10px 40px -10px rgba(0,0,0,0.4); flex: 1; position: relative; overflow: hidden; }
.v-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); }
.v-card:hover { transform: translateX(8px); border-color: rgba(37, 99, 235, 0.4); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6); background: var(--surface-hover); }
.v-step:hover .v-dot { transform: translateY(-50%) scale(1.3); background: var(--accent-color); box-shadow: 0 0 20px rgba(37, 99, 235, 0.8); }
.v-num { position: absolute; top: -1.25rem; right: 0.5rem; font-family: var(--font-heading); font-size: 7rem; font-weight: 700; color: rgba(255, 255, 255, 0.02); line-height: 1; pointer-events: none; letter-spacing: -0.05em; margin: 0; }
.v-content { position: relative; z-index: 2; }
.v-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.75rem; }
.v-desc { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

/* SPLIT SECTION & FEATURED PRODUCT (SOCO CARD REDESIGN) */
.soco-section { 
    background-color: var(--bg-color); 
    padding: 60px 0; 
    min-height: 80vh; /* Reduced from 100vh */
}

.soco-card {
    background-color: #9AD8DF;
    border-radius: 40px;
    padding: 40px 80px; 
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.soco-card .section-title { 
    color: #0E2239; 
    font-size: clamp(2.25rem, 3.5vw, 3rem); /* Slightly more compact title */
    line-height: 1.1; letter-spacing: -0.04em; 
    background: none; -webkit-text-fill-color: initial; 
    margin-bottom: 1.25rem;
}

.soco-card .section-subtitle { 
    color: #0E2239; 
    opacity: 0.9; 
    font-size: 1.1rem; 
    max-width: 100%;
}

.soco-card .label-small { 
    background: rgba(14, 34, 57, 0.05); 
    color: #0E2239; 
    border: 1px solid rgba(14, 34, 57, 0.1); 
    font-weight: 600; 
    margin-bottom: 1.5rem;
}

/* Feature Mockup Inside Card */
.mockup-wrapper { 
    position: relative; 
    z-index: 5;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-container { 
    width: 100%;
    max-width: 300px; /* Reduced from 380px */
    margin: 0 auto;
}

.mockup-container img { 
    width: 100%; height: auto; 
    filter: drop-shadow(0 30px 60px rgba(14, 34, 57, 0.25)); 
    animation: socoFloat 5s ease-in-out infinite; 
    display: block;
}

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

/* Specific buttons for this card */
.soco-card .btn-primary { background: #0E2239; color: #fff; }
.soco-card .btn-primary:hover { background: #fff; color: #0E2239; }
.soco-card .btn-secondary { border-color: #0E2239; color: #0E2239; }
.soco-card .btn-secondary:hover { background: rgba(14, 34, 57, 0.05); }

@media (max-width: 1024px) {
    .soco-card { grid-template-columns: 1fr; text-align: center; padding: 60px 40px; }
    .soco-card .section-subtitle { margin: 0 auto 2rem; }
    .mockup-container { max-width: 280px; margin-top: 2rem; }
}

@media (max-width: 640px) {
    .soco-card { padding: 40px 24px; border-radius: 30px; }
    .soco-card .section-title { font-size: 2.25rem; }
}

/* CALL TO ACTION */
.cta-section { padding: 120px 0; }
.container-sm { max-width: 800px; margin: 0 auto; clear: both; }

/* FOOTER */
.site-footer { 
  border-top: 1px solid var(--glass-border); 
  padding: 3rem 0 1.5rem; 
  background: rgba(255, 255, 255, 0.03); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  scroll-snap-align: end;
  position: relative;
  z-index: 10;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.brand-col .logo { font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; font-family: var(--font-heading); letter-spacing: 0.05em; display: block; }
.footer-desc { color: var(--text-muted); margin-top: 1rem; font-size: 0.95rem; line-height: 1.6; }
.footer-heading { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; margin-bottom: 0.75rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--surface-border); padding-top: 2rem; color: var(--text-muted); font-size: 0.875rem; display: flex; justify-content: space-between; align-items: center; }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-secondary); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-section, .split-section { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
  .method-layout { grid-template-columns: 1fr; gap: 4rem; }
  .sidebar-sticky { position: relative; top: 0; }
  .method-features { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; }
  .feature-item { flex: 1 1 calc(50% - 1.5rem); }
  .hero-content { align-items: center; }
  .capability-line { justify-content: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  /* Navbar Mobile Adjustment */
  .navbar { width: 95%; top: 1rem; }
  .nav-container { height: auto; padding: 0.75rem 1.25rem; flex-direction: column; gap: 1rem; border-radius: 24px; }
  .nav-links { gap: 1.25rem; width: 100%; justify-content: center; }
  .nav-links a { font-size: 0.75rem; letter-spacing: 0.02em; }
  .logo { font-size: 1.1rem; }

  .grid-4 { grid-template-columns: 1fr; }
  
  /* mobile specific overrides */
  .hero-headline { font-size: 2.25rem; line-height: 1.2; }
  .cta-group { flex-direction: column; width: 100%; gap: 10px; }
  .btn { width: 100%; justify-content: center; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .section { padding: 60px 0; }
}

