/*
Theme Name: ShipGig AI
Description: Modern AI & Software Company Theme for ShipGig Ventures
Version: 1.0
Author: ShipGig Ventures
*/

/* =============================================
   ROOT VARIABLES
============================================= */
:root {
    --bg-dark:    #04080f;
    --bg-mid:     #070d1c;
    --bg-card:    rgba(255,255,255,0.04);
    --border:     rgba(255,255,255,0.08);
    --border-hi:  rgba(91,76,245,0.4);

    --primary:    #5B4CF5;
    --primary-lt: #7C6FF7;
    --secondary:  #9B87F5;
    --accent:     #00D4FF;
    --green:      #10B981;
    --amber:      #F59E0B;

    --text-white:  #FFFFFF;
    --text-bright: #F1F5F9;
    --text-mid:    #CBD5E1;
    --text-muted:  #8892A4;
    --text-dim:    #475569;

    --radius-xs:  6px;
    --radius-sm:  10px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  32px;

    --shadow-sm:  0 2px 12px rgba(0,0,0,0.3);
    --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.5);
    --glow-p:     0 0 40px rgba(91,76,245,0.3);
    --glow-a:     0 0 40px rgba(0,212,255,0.2);

    --ease:       cubic-bezier(0.4,0,0.2,1);
    --transition: all 0.3s var(--ease);
    --transition-slow: all 0.6s var(--ease);
}

/* =============================================
   RESET
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-mid);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: rgba(91,76,245,0.4); color: white; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(91,76,245,0.5); border-radius: 3px; }

/* =============================================
   UTILITIES
============================================= */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

.gradient-text {
    background: linear-gradient(135deg, #fff 10%, var(--secondary) 55%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.accent-text { color: var(--accent); }
.primary-text { color: var(--secondary); }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(91,76,245,0.12);
    border: 1px solid rgba(91,76,245,0.3);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.section-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* =============================================
   BUTTONS
============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
    text-decoration: none;
}
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-md); }
.btn-xl { padding: 16px 40px; font-size: 16px; border-radius: var(--radius-md); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-lt));
    color: white;
    box-shadow: 0 4px 20px rgba(91,76,245,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(91,76,245,0.55); color: white; }

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #0EA5E9);
    color: #04080f;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0,212,255,0.35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,212,255,0.5); color: #04080f; }

.btn-outline {
    background: transparent;
    color: var(--text-bright);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-card); border-color: rgba(255,255,255,0.18); color: white; }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: white; }

/* =============================================
   SECTION HEADER
============================================= */
.sg-section-header { text-align: center; margin-bottom: 60px; }
.sg-section-header--left { text-align: left; margin-bottom: 40px; }

.sg-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: white;
    line-height: 1.12;
    margin-bottom: 16px;
}
.sg-section-sub {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.75;
}
.sg-section-header--left .sg-section-sub { margin: 0; }

/* =============================================
   NAVIGATION
============================================= */
.sg-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0;
    transition: var(--transition);
}
.sg-nav.scrolled {
    background: rgba(4,8,15,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.admin-bar .sg-nav { top: 32px; }

.sg-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.sg-nav__logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.3s;
}
.sg-nav__logo:hover { opacity: 0.85; }

/* ── Icon mark: gradient hexagon-ish pill ── */
.sg-nav__logo-mark {
    position: relative;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(91,76,245,0.55), 0 0 6px rgba(0,212,255,0.3);
}
.sg-nav__logo-mark::after {
    content: '';
    position: absolute; inset: 2px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
}
.sg-nav__logo-mark svg {
    width: 18px; height: 18px;
    position: relative; z-index: 1;
}

/* ── Wordmark ── */
.sg-nav__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
}
.sg-nav__logo-word {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    line-height: 1;
    /* SHIP = white, GIG = gradient via spans */
    color: #fff;
}
.sg-nav__logo-word .logo-accent {
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sg-nav__logo-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* Footer logo — slightly bigger sub label */
.sg-footer__brand .sg-nav__logo-word { font-size: 17px; }
.sg-footer__brand .sg-nav__logo-sub  { font-size: 9px; }

.sg-nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
}
.sg-nav__links a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-xs);
    transition: var(--transition);
}
.sg-nav__links a:hover { color: white; background: rgba(255,255,255,0.06); }
.sg-nav__links a.active { color: white; }

.sg-nav__actions { display: flex; align-items: center; gap: 10px; }

.sg-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    cursor: pointer;
}
.sg-hamburger span {
    width: 22px; height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

.sg-mobile-nav {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(4,8,15,0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    z-index: 999;
}
.sg-mobile-nav.open { display: block; }
.sg-mobile-nav a {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-mid);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 2px;
}
.sg-mobile-nav a:hover { background: var(--bg-card); color: white; }
.sg-mobile-nav .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* =============================================
   HERO
============================================= */
.sg-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 70px;
}

#sg-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.sg-hero__orbs { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.sg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}
.sg-orb--1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(91,76,245,0.7), transparent 65%);
    top: -200px; right: -150px;
    animation: orb-float 9s ease-in-out infinite;
}
.sg-orb--2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,212,255,0.5), transparent 65%);
    bottom: -100px; left: -100px;
    animation: orb-float 11s ease-in-out infinite reverse;
}
.sg-orb--3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(155,135,245,0.4), transparent 65%);
    top: 40%; left: 35%;
    animation: orb-float 13s ease-in-out infinite 3s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(40px,-40px) scale(1.06); }
    66% { transform: translate(-25px,25px) scale(0.94); }
}

.sg-hero__wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 24px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.sg-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.sg-hero__badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(0,212,255,0); }
}

.sg-hero__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: white;
    margin-bottom: 24px;
}
.sg-hero__title .hl {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sg-hero__sub {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 520px;
}

.sg-hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.sg-hero__social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sg-avatars {
    display: flex;
    align-items: center;
}
.sg-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    font-size: 12px;
    font-weight: 700;
    color: white;
    display: flex; align-items: center; justify-content: center;
}
.sg-avatar:not(:first-child) { margin-left: -9px; }
.sg-avatar--a { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.sg-avatar--b { background: linear-gradient(135deg, #10B981, #059669); }
.sg-avatar--c { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.sg-avatar--d { background: linear-gradient(135deg, #EC4899, #8B5CF6); }
.sg-proof-text { font-size: 13px; color: var(--text-muted); }
.sg-proof-text strong { color: white; font-weight: 600; }

/* Hero Visual */
.sg-hero__visual { position: relative; }

.sg-terminal {
    background: rgba(7,13,28,0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
}
.sg-terminal__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}
.sg-terminal__dots { display: flex; gap: 6px; }
.sg-terminal__dot {
    width: 11px; height: 11px;
    border-radius: 50%;
}
.sg-terminal__dot:nth-child(1) { background: #FF5F57; }
.sg-terminal__dot:nth-child(2) { background: #FEBC2E; }
.sg-terminal__dot:nth-child(3) { background: #28C840; }
.sg-terminal__title { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.sg-terminal__body { padding: 24px; }

.sg-code { font-family: 'Courier New', 'Cascadia Code', monospace; font-size: 13px; line-height: 1.85; }
.sg-code .kw  { color: #C792EA; }
.sg-code .fn  { color: #82AAFF; }
.sg-code .str { color: #C3E88D; }
.sg-code .num { color: #F78C6C; }
.sg-code .cls { color: #FFCB6B; }
.sg-code .cm  { color: #546E7A; }
.sg-code .pn  { color: #89DDFF; }
.sg-code .tx  { color: #EEFFFF; }

.sg-typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.sg-float {
    position: absolute;
    background: rgba(7,13,28,0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}
.sg-float--tl { top: -18px; left: -24px; min-width: 180px; animation: float-y 6s ease-in-out infinite; }
.sg-float--br { bottom: -18px; right: -24px; min-width: 190px; animation: float-y 6s ease-in-out infinite 1.8s; }

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

.sg-float__label { font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 5px; }
.sg-float__value { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; color: white; }
.sg-float__value .up { color: var(--green); }
.sg-float__sub { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.sg-float__tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px;
    background: rgba(16,185,129,0.15);
    border-radius: 100px;
    font-size: 11px; font-weight: 700; color: var(--green);
    margin-top: 6px;
}

.sg-ai-model { display: flex; align-items: center; gap: 10px; }
.sg-ai-model__icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.sg-ai-model__name { font-size: 13px; font-weight: 700; color: white; }
.sg-ai-model__status { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.sg-ai-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 100px; margin-top: 12px; overflow: hidden; }
.sg-ai-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 100px;
    animation: ai-progress 3s ease-in-out infinite;
}
@keyframes ai-progress { 0%{width:15%} 50%{width:88%} 100%{width:15%} }

/* =============================================
   LOGO MARQUEE
============================================= */
.sg-marquee {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-mid);
    overflow: hidden;
}
.sg-marquee__label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.sg-marquee__mask {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 12%, white 88%, transparent);
    mask: linear-gradient(90deg, transparent, white 12%, white 88%, transparent);
}
.sg-marquee__track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marquee 28s linear infinite;
}
.sg-marquee__track:hover { animation-play-state: paused; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

.sg-logo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    transition: color 0.3s;
}
.sg-logo-item:hover { color: var(--text-muted); }
.sg-logo-item__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }

/* =============================================
   SERVICES
============================================= */
.sg-services { padding: 120px 0; position: relative; }
.sg-services::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 1px; height: 80px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

.sg-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.sg-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.sg-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(91,76,245,0.07) 0%, rgba(0,212,255,0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.sg-card:hover {
    border-color: var(--border-hi);
    transform: translateY(-5px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(91,76,245,0.15);
}
.sg-card:hover::after { opacity: 1; }

.sg-card__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 22px;
    position: relative; z-index: 1;
    flex-shrink: 0;
}
.sg-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    position: relative; z-index: 1;
}
.sg-card__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 22px;
    position: relative; z-index: 1;
}
.sg-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-lt);
    text-decoration: none;
    position: relative; z-index: 1;
    transition: gap 0.2s ease;
}
.sg-card:hover .sg-card__link { gap: 10px; }

/* Icon color variants */
.icon-purple { background: rgba(91,76,245,0.15); }
.icon-cyan   { background: rgba(0,212,255,0.12); }
.icon-green  { background: rgba(16,185,129,0.12); }
.icon-amber  { background: rgba(245,158,11,0.12); }
.icon-pink   { background: rgba(236,72,153,0.12); }
.icon-blue   { background: rgba(59,130,246,0.12); }

/* =============================================
   AI SHOWCASE
============================================= */
.sg-ai-showcase {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}
.sg-ai-showcase::before {
    content: '';
    position: absolute;
    top: 50%; right: -300px;
    transform: translateY(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,212,255,0.06), transparent 65%);
    pointer-events: none;
}

.sg-ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sg-ai-features { display: flex; flex-direction: column; gap: 18px; margin: 32px 0 40px; }
.sg-ai-feat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.sg-ai-feat:hover { border-color: rgba(0,212,255,0.25); background: rgba(0,212,255,0.04); }
.sg-ai-feat__icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.sg-ai-feat__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 700;
    color: white; margin-bottom: 4px;
}
.sg-ai-feat__desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* AI Orb Visual */
.sg-ai-sphere-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.sg-ai-sphere {
    position: relative;
    width: 360px; height: 360px;
    flex-shrink: 0;
}
.sg-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    animation: ring-spin linear infinite;
}
.sg-ring--1 { inset:0; border-color:rgba(91,76,245,0.35); animation-duration:22s; }
.sg-ring--2 { inset:28px; border-color:rgba(0,212,255,0.25); animation-duration:16s; animation-direction:reverse; }
.sg-ring--3 { inset:56px; border-color:rgba(155,135,245,0.2); animation-duration:11s; }
@keyframes ring-spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.sg-sphere-core {
    position: absolute;
    inset: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    box-shadow: 0 0 60px rgba(91,76,245,0.6), 0 0 120px rgba(0,212,255,0.25);
    animation: core-pulse 3s ease-in-out infinite;
}
@keyframes core-pulse {
    0%,100% { box-shadow: 0 0 60px rgba(91,76,245,0.6), 0 0 120px rgba(0,212,255,0.25); }
    50% { box-shadow: 0 0 80px rgba(91,76,245,0.8), 0 0 160px rgba(0,212,255,0.4); }
}

.sg-orbit-tag {
    position: absolute;
    background: rgba(7,13,28,0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px; font-weight: 700;
    color: white;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}
.sg-orbit-tag::before {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
}
.sg-orbit-tag--1 { top: 8px; right: 0; }
.sg-orbit-tag--1::before { background: var(--green); }
.sg-orbit-tag--2 { bottom: 20px; left: -10px; }
.sg-orbit-tag--2::before { background: var(--primary-lt); }
.sg-orbit-tag--3 { top: 48%; right: -24px; transform: translateY(-50%); }
.sg-orbit-tag--3::before { background: var(--accent); }

/* =============================================
   STATS
============================================= */
.sg-stats { padding: 80px 0; }
.sg-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.sg-stat {
    background: var(--bg-mid);
    padding: 48px 28px;
    text-align: center;
    transition: background 0.3s;
}
.sg-stat:hover { background: rgba(91,76,245,0.07); }
.sg-stat__val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(36px,4vw,52px);
    font-weight: 800;
    background: linear-gradient(135deg, white 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1; margin-bottom: 8px;
}
.sg-stat__lbl { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* =============================================
   PROCESS
============================================= */
.sg-process { padding: 120px 0; }
.sg-process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    margin-top: 64px;
}
.sg-process__steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: calc(12.5% + 16px);
    right: calc(12.5% + 16px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
    z-index: 0;
}
.sg-step { text-align: center; position: relative; z-index: 1; }
.sg-step__num {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-lt));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px; font-weight: 800; color: white;
    box-shadow: 0 0 30px rgba(91,76,245,0.35);
    transition: var(--transition);
}
.sg-step:hover .sg-step__num {
    transform: scale(1.12);
    box-shadow: 0 0 50px rgba(91,76,245,0.6);
}
.sg-step__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px; font-weight: 700;
    color: white; margin-bottom: 10px;
}
.sg-step__desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* =============================================
   TECH STACK
============================================= */
.sg-tech { padding: 80px 0 120px; }
.sg-tech__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 48px;
}
.sg-tech-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px; font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}
.sg-tech-pill:hover {
    border-color: var(--border-hi);
    color: white;
    background: rgba(91,76,245,0.08);
    transform: translateY(-3px);
}
.sg-tech-pill__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
}

/* =============================================
   TESTIMONIALS
============================================= */
.sg-testimonials {
    padding: 120px 0;
    background: var(--bg-mid);
    position: relative;
    overflow: hidden;
}
.sg-testimonials::before {
    content: '';
    position: absolute;
    top: -200px; left: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(91,76,245,0.06), transparent 65%);
    pointer-events: none;
}
.sg-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 60px;
}
.sg-testi {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}
.sg-testi:hover {
    border-color: rgba(91,76,245,0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.sg-testi__stars { display: flex; gap: 3px; margin-bottom: 18px; }
.sg-testi__stars span { color: var(--amber); font-size: 13px; }
.sg-testi__quote {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 28px;
}
.sg-testi__author { display: flex; align-items: center; gap: 14px; }
.sg-testi__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; color: white; flex-shrink: 0;
}
.sg-testi__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 700; color: white;
}
.sg-testi__role { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* =============================================
   CTA SECTION
============================================= */
.sg-cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.sg-cta::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(91,76,245,0.18), transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0,212,255,0.1), transparent 60%);
}
.sg-cta__grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}
.sg-cta__inner { position: relative; z-index: 1; }
.sg-cta__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
}
.sg-cta__sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
}
.sg-cta__actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* =============================================
   FOOTER
============================================= */
.sg-footer {
    background: #02050b;
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}
.sg-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.sg-footer__desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.75;
    margin: 16px 0 24px;
    max-width: 270px;
}
.sg-footer__socials { display: flex; gap: 8px; }
.sg-footer__social {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim);
    font-size: 15px;
    transition: var(--transition);
    text-decoration: none;
}
.sg-footer__social:hover {
    background: rgba(91,76,245,0.15);
    border-color: rgba(91,76,245,0.4);
    color: var(--secondary);
}
.sg-footer__col-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px; font-weight: 700;
    color: white;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.sg-footer__links { display: flex; flex-direction: column; gap: 12px; }
.sg-footer__links a {
    font-size: 14px; color: var(--text-dim);
    transition: color 0.2s;
    text-decoration: none;
}
.sg-footer__links a:hover { color: var(--text-mid); }
.sg-footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sg-footer__copy { font-size: 13px; color: var(--text-dim); }
.sg-footer__tagline { font-size: 13px; color: var(--text-dim); }
.sg-footer__tagline span { color: var(--primary-lt); }

/* =============================================
   INNER PAGES (header/footer)
============================================= */
.sg-page-hero {
    padding: 130px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-mid), var(--bg-dark));
    border-bottom: 1px solid var(--border);
}
.sg-page-content { padding: 80px 0; }
.sg-page-content .entry-content { font-size: 16px; line-height: 1.8; color: var(--text-mid); }
.sg-page-content .entry-content h1,
.sg-page-content .entry-content h2,
.sg-page-content .entry-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: white; font-weight: 700; margin: 32px 0 16px;
}
.sg-page-content .entry-content p { margin-bottom: 20px; }
.sg-page-content .entry-content a { color: var(--secondary); }
.sg-page-content .entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 20px; }

/* =============================================
   ANIMATIONS
============================================= */
@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50% { opacity:0.5; transform:scale(0.75); }
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1100px) {
    .sg-hero__wrap { grid-template-columns: 1fr; }
    .sg-hero__visual { display: none; }
    .sg-services__grid { grid-template-columns: repeat(2, 1fr); }
    .sg-ai-grid { grid-template-columns: 1fr; }
    .sg-ai-sphere-wrap { display: none; }
    .sg-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .sg-process__steps { grid-template-columns: repeat(2,1fr); }
    .sg-process__steps::before { display: none; }
    .sg-tech__grid { grid-template-columns: repeat(4,1fr); }
    .sg-testimonials__grid { grid-template-columns: repeat(2,1fr); }
    .sg-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .sg-nav__links { display: none; }
    .sg-nav__actions .btn-outline { display: none; }
    .sg-hamburger { display: flex; }
    .sg-services__grid { grid-template-columns: 1fr; }
    .sg-stats__grid { grid-template-columns: repeat(2,1fr); }
    .sg-process__steps { grid-template-columns: 1fr; }
    .sg-tech__grid { grid-template-columns: repeat(3,1fr); }
    .sg-testimonials__grid { grid-template-columns: 1fr; }
    .sg-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .sg-footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 480px) {
    .sg-tech__grid { grid-template-columns: repeat(2,1fr); }
    .sg-hero__actions { flex-direction: column; align-items: flex-start; }
    .sg-cta__actions { flex-direction: column; }
}

/* =============================================
   PERFORMANCE OPTIMISATIONS
============================================= */

/* content-visibility — browser skips render of off-screen sections */
.sg-marquee,
.sg-services,
.sg-ai-section,
.sg-stats,
.sg-process,
.sg-tech,
.sg-testimonials,
.sg-cta,
section.tech-section,
.section-mv,
.section-story,
.section-values,
.section-team {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px; /* estimated height prevents layout shift */
}

/* will-change only on elements actively animating */
.sg-orb { will-change: transform; }
.sg-nav  { will-change: background, box-shadow; }

/* Avoid layout thrash on hover transforms */
.sg-card,
.tech-cat-card,
.dev-stack-card,
.ai-deep-card,
.about-stat-card,
.value-card,
.team-card,
.cloud-card,
.tl-content {
    transform: translateZ(0); /* promote to own compositing layer */
}

/* Font-display swap fallback for system fonts during load */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Lazy-load images */
img { loading: lazy; }
