/* ============================================
   REIKIA IT — Main Stylesheet
   Premium dark blue theme with glassmorphism
   ============================================ */

/* ----- CSS Custom Properties ----- */
:root {
    --bg-primary: #0a1628;
    --bg-secondary: #0f1f38;
    --bg-card: rgba(15, 31, 56, 0.7);
    --bg-glass: rgba(26, 58, 92, 0.4);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #e8eef5;
    --text-secondary: #8fa3be;
    --text-muted: #5a7190;
    --accent: #4da6ff;
    --accent-hover: #6db8ff;
    --accent-dark: #1a6dcc;
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #0f2847 40%, #1a3a5c 100%);
    --gradient-accent: linear-gradient(135deg, #4da6ff, #1a6dcc);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(77, 166, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
}

/* ----- Reset ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Typography ----- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #a8d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}

/* Heritage red "IT" — nod to the original brand mark */
.logo-accent {
    background: linear-gradient(110deg, #ff4d6d 25%, #ffb3c1 45%, #ff758f 55%, #ff4d6d 75%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo:hover .logo-accent {
    animation: text-shimmer 1.8s ease-in-out infinite;
}

/* Logo mark — cloud-download tile */
.logo-mark {
    transition: filter 0.3s ease, transform 0.3s ease;
}

.nav-logo:hover .logo-mark {
    filter: drop-shadow(0 0 10px rgba(77, 166, 255, 0.5));
    transform: translateY(-1px);
}

.logo-mark .logo-arrow {
    transform-box: fill-box;
    transform-origin: center;
}

.nav-logo:hover .logo-mark .logo-arrow {
    animation: logo-arrow-drop 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes logo-arrow-drop {
    0% {
        transform: translateY(-30%);
        opacity: 0;
    }

    35% {
        transform: translateY(0);
        opacity: 1;
    }

    70% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(45%);
        opacity: 0;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(77, 166, 255, 0.1);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-cta {
    background: var(--gradient-accent) !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-xl) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 12px rgba(77, 166, 255, 0.3);
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(77, 166, 255, 0.4) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    /* iOS Safari: small-viewport unit is stable when the toolbar
       collapses/expands — prevents the hero resizing/jumping */
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(77, 166, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(77, 166, 255, 0.12);
    border: 1px solid rgba(77, 166, 255, 0.2);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
}

.hero h1 .gradient-text {
    background: linear-gradient(110deg, #4da6ff 20%, #b8dcff 40%, #82c4ff 50%, #4da6ff 70%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 6s ease-in-out infinite;
}

@keyframes text-shimmer {

    0%,
    100% {
        background-position: 100% 0;
    }

    50% {
        background-position: 0% 0;
    }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f2847;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-pill:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 20px rgba(77, 166, 255, 0.35);
    background: #fff;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Particle network — faint full-hero background layer */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    opacity: 0.55;
}

/* Hero Visual — diagnostic terminal */
.hero-visual {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal {
    width: 100%;
    max-width: 520px;
    background: rgba(8, 16, 30, 0.92);
    border: 1px solid rgba(77, 166, 255, 0.25);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(77, 166, 255, 0.08);
    overflow: hidden;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}

.terminal-bar i:nth-child(1) {
    background: #ff5f57;
}

.terminal-bar i:nth-child(2) {
    background: #febc2e;
}

.terminal-bar i:nth-child(3) {
    background: #28c840;
}

.terminal-bar span {
    margin-left: 10px;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 18px 20px;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.8;
    /* exactly 11 lines + vertical padding — keeps the last line whole */
    height: calc(1.8em * 11 + 36px);
    overflow: hidden;
    color: #9fb6d4;
    text-align: left; /* don't inherit the centered mobile hero layout */
}

.terminal-body .ln-prompt {
    color: var(--accent);
}

.terminal-body .ln-ok {
    color: #34d399;
}

.terminal-body .ln-warn {
    color: #fbbf24;
}

.terminal-body .ln-dim {
    color: var(--text-muted);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--accent);
    vertical-align: -2px;
    margin-left: 1px;
    animation: cursor-blink 1s steps(1) infinite;
}

@keyframes cursor-blink {
    50% {
        opacity: 0;
    }
}

/* ----- WebGL gradient mesh background ----- */
/* Overscan (top/height) gives the parallax room without revealing gaps.
   If WebGL is unavailable the canvas stays transparent and the hero's
   own background gradient shows through. */
.hero-gradient {
    position: absolute;
    top: -12%;
    left: 0;
    width: 100%;
    height: 124%;
    z-index: 0;
    display: block;
    pointer-events: none;
    will-change: transform;
}

/* ----- Grain overlay (kills gradient banding) ----- */
.hero-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Word rotator ----- */
.hero-rotator {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.word-rotator {
    display: inline-block;
    color: var(--accent);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.word-rotator.is-leaving {
    opacity: 0;
    transform: translateY(-12px) rotateX(60deg);
}

.word-rotator.is-entering {
    opacity: 0;
    transform: translateY(12px) rotateX(-60deg);
    transition: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 2px 16px rgba(77, 166, 255, 0.3);
    will-change: transform;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(77, 166, 255, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 166, 255, 0.2), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 166, 255, 0.15);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

/* ----- Cursor spotlight + tilt (shared by glass cards) ----- */
.service-card,
.pricing-card,
.about-card {
    will-change: transform;
    transform-style: preserve-3d;
}

.service-card::after,
.pricing-card::after,
.about-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%),
            rgba(77, 166, 255, 0.13), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::after,
.pricing-card:hover::after,
.about-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(77, 166, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.service-card .subtitle {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

/* ============================================
   LEGAL / PRIVACY PAGE
   ============================================ */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.legal-content .legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 36px 0 14px;
}

.legal-content p {
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal-content ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.legal-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-content li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
}

.legal-content a {
    word-break: break-word;
}

.legal-content code {
    background: rgba(77, 166, 255, 0.1);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-section {
    padding: 56px 0;
    background: var(--bg-primary);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 166, 255, 0.2), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #82c4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* ============================================
   TECH / PARTNER MARQUEE
   ============================================ */
.marquee-section {
    padding: 48px 0 72px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.marquee-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 64px;
    padding-right: 64px;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity var(--transition), color var(--transition);
    cursor: default;
}

.marquee-item:hover {
    opacity: 1;
    color: var(--text-secondary);
}

@keyframes marquee-scroll {
    to {
        transform: translateX(-50%);
    }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-hero {
    padding: 140px 0 80px;
    background: var(--gradient-hero);
    text-align: center;
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
}

.about-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
    position: relative;
}

.about-card:hover {
    border-color: rgba(77, 166, 255, 0.15);
    transform: translateY(-2px);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--accent);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.pricing-card.featured {
    border-color: rgba(77, 166, 255, 0.3);
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.pricing-card.featured::before {
    content: 'Populiariausias';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 20px;
    border-radius: 50px;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 166, 255, 0.15);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin: 16px 0 4px;
}

.pricing-card .price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.pricing-card .description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 166, 255, 0.2), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: rgba(77, 166, 255, 0.15);
    transform: translateX(4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(77, 166, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-card a {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Shared reveal easing — a soft "focus-in" lift with blur */
.fade-in,
.fade-in-left,
.fade-in-right,
.stagger>* {
    will-change: opacity, transform, filter;
    transition: opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
        filter 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.fade-in {
    opacity: 0;
    transform: translateY(36px);
    filter: blur(8px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    filter: blur(8px);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    filter: blur(8px);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* Stagger children animations */
.stagger>* {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
}

.stagger.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger.visible>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger.visible>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger.visible>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger.visible>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger.visible>*:nth-child(6) {
    transition-delay: 0.6s;
}

.stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ----- Scroll progress bar ----- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1100;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(77, 166, 255, 0.5);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 700px;
        margin: 0 auto;
    }

    .hero-pills {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        min-height: 0;
        max-width: 560px;
        margin: 24px auto 0;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        /* iOS: dynamic-viewport unit keeps the menu full-height as the
           Safari toolbar shows/hides */
        height: 100dvh;
        background: rgba(10, 22, 40, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right var(--transition);
        border-left: 1px solid var(--border-glass);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 14px 16px;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .terminal-body {
        font-size: 0.74rem;
        padding: 14px 16px;
        /* 11 lines at the smaller font + reduced padding */
        height: calc(1.8em * 11 + 28px);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */
.admin-body {
    background: var(--bg-primary);
    min-height: 100vh;
}

.admin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.admin-header h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fff, #a8d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--accent);
    background: rgba(77, 166, 255, 0.08);
    border-color: rgba(77, 166, 255, 0.15);
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.admin-card h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.admin-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.admin-form label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 22, 40, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 16px;
    transition: all var(--transition);
    outline: none;
}

.admin-form input:focus,
.admin-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.1);
}

.admin-form textarea {
    resize: vertical;
    min-height: 100px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.admin-btn-primary {
    background: var(--gradient-accent);
    color: #fff;
}

.admin-btn-primary:hover {
    box-shadow: 0 2px 16px rgba(77, 166, 255, 0.3);
}

.admin-btn-danger {
    background: rgba(255, 77, 77, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.admin-btn-danger:hover {
    background: rgba(255, 77, 77, 0.25);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.9rem;
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table td {
    color: var(--text-secondary);
}

.admin-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-badge.active {
    background: rgba(77, 255, 130, 0.1);
    color: #4dff82;
}

.admin-badge.inactive {
    background: rgba(255, 77, 77, 0.1);
    color: #ff6b6b;
}

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(77, 255, 130, 0.1);
    border: 1px solid rgba(77, 255, 130, 0.2);
    color: #4dff82;
}

.alert-error {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
    color: #ff6b6b;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--bg-primary);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
}

.login-card h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.login-card .login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    .hero h1 .gradient-text,
    .marquee-track,
    .hero-badge::before,
    .cursor,
    .nav-logo:hover .logo-accent,
    .nav-logo:hover .logo-mark .logo-arrow {
        animation: none;
    }

    .word-rotator {
        transition: none;
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .stagger>* {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    /* Parallax stays put; progress bar is fine (tracks real scroll) */
    .hero-gradient {
        transform: none !important;
    }
}