/* ============================================
   HITO - Landing Page Styles
   Apple-inspired dark theme with deep teal accents
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --brand-primary: #0F766E;
    --brand-light: #14B8A6;
    --brand-dark: #134E4A;
    --brand-glow: rgba(15, 118, 110, 0.15);

    --accent: #00D9C4;
    --accent-light: #33FFE8;
    --accent-dark: #00B3A1;
    --accent-glow: rgba(0, 217, 196, 0.15);

    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-tertiary: #1A1A1A;
    --bg-glass: rgba(255, 255, 255, 0.03);

    --text-primary: #F5F5F7;
    --text-secondary: #A1A1A6;
    --text-tertiary: #6E6E73;

    --border-subtle: rgba(255, 255, 255, 0.08);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-hero: clamp(3rem, 8vw, 5.5rem);
    --text-h1: clamp(2.5rem, 5vw, 4rem);
    --text-h2: clamp(1.5rem, 3vw, 2rem);
    --text-h3: clamp(1.125rem, 2vw, 1.5rem);
    --text-body: clamp(1rem, 1.5vw, 1.125rem);
    --text-small: clamp(0.75rem, 1vw, 0.875rem);

    --container-max: 1200px;
    --section-padding: clamp(80px, 12vw, 160px);
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    z-index: 10;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    transform: scaleX(1);
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--brand-primary);
    padding: 8px 20px;
    border-radius: 100px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    background: var(--brand-light);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(15, 118, 110, 0.3);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--brand-primary);
}

.mobile-cta {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--brand-primary);
    padding: 14px 40px;
    border-radius: 100px;
    margin-top: 16px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    will-change: transform;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.2) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
    bottom: -50px;
    left: -100px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 20px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 35px) scale(1.05); }
    66% { transform: translate(35px, -20px) scale(0.92); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 1100px;
    will-change: transform;
}

.hero-title {
    font-size: var(--text-hero);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 50%, #00D9C4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.5;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 100px;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 0 30px rgba(15, 118, 110, 0.3);
}

.btn-primary:hover {
    background: var(--brand-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 50px rgba(15, 118, 110, 0.45);
}

.btn-primary:active {
    background: var(--brand-dark);
    transform: translateY(0) scale(1);
}

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

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 1; }
}

/* --- Sections --- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    text-align: center;
}

.section-title {
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.section-title-center {
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-subtitle-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* --- Services Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

.card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, var(--brand-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(15, 118, 110, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(15, 118, 110, 0.08);
}

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

.card-highlighted {
    border-color: rgba(0, 217, 196, 0.2);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-primary);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.card-title {
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- IA & Automatización Section --- */
.services-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 1024px) {
    .services-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card-ai::before {
    background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 60%);
}

.card-ai:hover {
    border-color: rgba(0, 217, 196, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 217, 196, 0.1);
}

.card-icon-accent {
    position: relative;
}

.card-icon-accent::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.card-ai:hover .card-icon-accent::after {
    opacity: 1;
}

.ai-callout {
    margin-top: 56px;
    padding: 32px 40px;
    border: 1px solid rgba(0, 217, 196, 0.25);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 217, 196, 0.06) 0%, rgba(0, 217, 196, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.ai-callout-content {
    flex: 1;
    min-width: 260px;
}

.ai-callout-title {
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.ai-callout-text {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 600px) {
    .ai-callout {
        padding: 28px 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .ai-callout .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- Technology Grid --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tech-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
}

.tech-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 217, 196, 0.25);
    background: rgba(0, 217, 196, 0.04);
}

.tech-logo {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tech-card:hover .tech-logo {
    opacity: 1;
}

.tech-name {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tech-desc {
    font-size: var(--text-small);
    color: var(--text-tertiary);
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 64px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    transition: all 0.4s var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-6px);
}

.pricing-featured {
    border-color: rgba(15, 118, 110, 0.3);
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.06) 0%, var(--bg-tertiary) 50%);
    transform: scale(1.03);
    box-shadow: 0 0 60px rgba(15, 118, 110, 0.1);
    animation: glowPulse 4s ease-in-out infinite;
}

.pricing-featured:hover {
    transform: scale(1.03) translateY(-6px);
}

/* Featured card button — white for maximum visibility */
.pricing-featured .btn-primary {
    background: white;
    color: var(--bg-primary);
    font-weight: 700;
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.pricing-featured .btn-primary:hover {
    background: #F0F0F2;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 35px rgba(255, 255, 255, 0.3);
}

.pricing-featured .btn-primary:active {
    background: #E0E0E2;
    transform: translateY(0) scale(1);
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(15, 118, 110, 0.1); }
    50% { box-shadow: 0 0 70px rgba(15, 118, 110, 0.2); }
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 20px;
    border-radius: 100px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-name {
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pricing-from {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-amount {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-amount-highlight {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-amount-highlight small {
    font-size: 0.5em;
    -webkit-text-fill-color: var(--text-tertiary);
}

.pricing-period {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    margin-top: 8px;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    flex-shrink: 0;
}

/* --- Features / Why Us --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-top: 64px;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
}

.feature-title {
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto;
}

/* --- Contact Section --- */
.section-contact {
    position: relative;
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.contact-form {
    max-width: 600px;
    margin: 48px auto 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-tertiary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(0, 217, 196, 0.5);
    box-shadow: 0 0 20px var(--accent-glow);
}

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

.contact-form .btn {
    margin-top: 8px;
}

.form-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    margin-top: 16px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
}

.form-success.visible {
    display: flex;
}

.form-error {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    margin-top: 12px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.form-error.visible {
    display: flex;
}

.contact-alt {
    text-align: center;
    margin-top: 48px;
}

.contact-alt p {
    color: var(--text-tertiary);
    margin-bottom: 16px;
    font-size: var(--text-small);
}

.contact-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--brand-primary);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 32px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.footer-copy {
    font-size: var(--text-small);
    color: var(--text-tertiary);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-social {
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.footer-social:hover {
    color: var(--text-primary);
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.12) 0%, rgba(15, 118, 110, 0.04) 30%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: transform;
    mix-blend-mode: screen;
}

.cursor-glow.active {
    opacity: 1;
}

/* --- 3D Tilt Cards --- */
.card,
.tech-card,
.pricing-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card .card-icon,
.card .card-title,
.card .card-description,
.card .card-badge,
.tech-card .tech-logo,
.tech-card .tech-name,
.tech-card .tech-desc,
.pricing-card .pricing-header,
.pricing-card .pricing-features,
.pricing-card .pricing-badge,
.pricing-card .btn {
    transform: translateZ(20px);
}

/* Card spotlight hover effect (follows cursor inside card) */
.card-spotlight,
.tech-spotlight,
.pricing-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.card:hover .card-spotlight,
.tech-card:hover .tech-spotlight,
.pricing-card:hover .pricing-spotlight {
    opacity: 1;
}

/* Card spotlight inner (injected via JS) */
.card-spotlight-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

/* --- Cursor Particles (fire sparks) --- */
.cursor-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    will-change: transform, opacity;
    animation: particleFade 1s ease-out forwards;
}

@keyframes particleFade {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--px, 0), var(--py, -80px)) scale(0);
    }
}

/* --- Cursor Trail (smooth dots) --- */
.trail-dot {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    will-change: transform;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease;
}

/* --- Click Ripple --- */
.click-ripple {
    position: fixed;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--brand-primary);
    pointer-events: none;
    z-index: 9996;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleExpand 0.7s ease-out forwards;
}

.click-ripple::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(15, 118, 110, 0.4);
    animation: rippleExpand 0.7s 0.1s ease-out forwards;
    transform: scale(0);
}

@keyframes rippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth),
                transform 0.8s var(--transition-smooth);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .pricing-featured {
        transform: scale(1);
    }
    .pricing-featured:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 0 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-title br {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-title {
        font-size: clamp(1.75rem, 8.5vw, 2.5rem);
        overflow-wrap: break-word;
    }

    .section-title {
        font-size: clamp(1.875rem, 7vw, 2.5rem);
    }

    .hero-orb-1 {
        width: 300px;
        height: 300px;
    }

    .hero-orb-2 {
        width: 200px;
        height: 200px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-orb {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
    }

    .pricing-featured {
        animation: none;
    }

    .cursor-glow,
    .cursor-particle,
    .trail-dot,
    .click-ripple {
        display: none !important;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* --- Case Study: NAIT --- */
.nait-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 2fr;
    gap: 48px;
    margin-top: 64px;
    align-items: start;
}

.nait-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nait-stat {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--brand-primary);
    border-radius: 16px;
    padding: 24px 28px;
    transition: transform 0.3s var(--transition-smooth);
}

.nait-stat:hover {
    transform: translateX(4px);
}

.nait-stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 6px;
}

.nait-stat-label {
    display: block;
    font-size: var(--text-small);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.nait-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
}

.nait-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--text-primary);
    font-size: var(--text-body);
    line-height: 1.5;
}

.nait-features li svg {
    flex-shrink: 0;
    margin-top: 6px;
}

.nait-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
}

/* --- NAIT Gallery --- */
.nait-gallery {
    margin-top: 72px;
}

.nait-gallery-main {
    position: relative;
}

.nait-shot {
    margin: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 16px 16px 0;
    overflow: hidden;
    transition: transform 0.5s var(--transition-smooth), border-color 0.4s ease, box-shadow 0.4s ease;
}

.nait-shot:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 118, 110, 0.25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 60px rgba(15, 118, 110, 0.06);
}

.nait-shot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.nait-shot figcaption {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 14px 4px 16px;
    text-align: center;
}

.nait-shot-hero {
    padding-bottom: 0;
}

.nait-shot-mobile {
    position: absolute;
    bottom: -32px;
    right: -8px;
    width: 17%;
    max-width: 220px;
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
    transform: rotate(4deg);
    transition: transform 0.5s var(--transition-smooth);
}

.nait-shot-mobile img {
    width: 100%;
    height: auto;
    display: block;
}

.nait-shot-mobile:hover {
    transform: rotate(0deg) translateY(-4px);
}

.nait-gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.nait-gallery-note {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-style: italic;
}

.nait-gallery-note svg {
    color: var(--accent);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .nait-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nait-features {
        padding: 24px 24px;
    }

    .nait-gallery {
        margin-top: 56px;
    }

    .nait-shot-mobile {
        width: 28%;
        bottom: -16px;
        right: -4px;
    }

    .nait-gallery-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }

    .nait-shot {
        padding: 10px 10px 0;
        border-radius: 16px;
    }

    .nait-shot figcaption {
        font-size: 0.6875rem;
        padding: 10px 4px 12px;
    }
}

/* --- Case Kanawak (warm/sunset accent) --- */
.case-kanawak {
    --kanawak-gold: #E0A458;
    --kanawak-gold-glow: rgba(224, 164, 88, 0.18);
    position: relative;
    overflow: hidden;
}

.case-kanawak::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--kanawak-gold-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.case-kanawak > .container {
    position: relative;
    z-index: 1;
}

.case-kanawak .section-label {
    color: var(--kanawak-gold);
}

.case-kanawak-shot {
    position: relative;
    max-width: 1000px;
    margin: 56px auto 64px;
}

.case-kanawak-shot .nait-shot:hover {
    border-color: rgba(224, 164, 88, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(224, 164, 88, 0.1);
}

.case-kanawak-mobile {
    bottom: -28px;
    right: -12px;
    width: 16%;
    transform: rotate(-5deg);
}

.case-kanawak-mobile:hover {
    transform: rotate(0deg) translateY(-4px);
}

.case-kanawak-accent {
    background: linear-gradient(135deg, var(--kanawak-gold) 0%, #F5C572 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.case-kanawak .nait-stat {
    border-left-color: var(--kanawak-gold);
}

.case-kanawak-features {
    color: var(--text-secondary);
}

.case-kanawak-features li svg {
    color: var(--kanawak-gold);
}

@media (max-width: 768px) {
    .case-kanawak-shot {
        margin: 40px 0 48px;
    }

    .case-kanawak-mobile {
        width: 28%;
        bottom: -16px;
        right: -4px;
    }
}

/* --- Form selects + SLA badge --- */
.contact-form select {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A1A1A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 48px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form select:focus {
    outline: none;
    border-color: rgba(0, 217, 196, 0.5);
    box-shadow: 0 0 20px var(--accent-glow);
}

.contact-form select:invalid {
    color: var(--text-tertiary);
}

.contact-form select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.form-sla {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: var(--text-small);
}

.form-sla svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* --- FAQ --- */
.faq-list {
    max-width: 760px;
    margin: 64px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: border-color 0.3s var(--transition-smooth);
    overflow: hidden;
}

.faq-item[open] {
    border-color: rgba(15, 118, 110, 0.3);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    cursor: pointer;
    list-style: none;
    color: var(--text-primary);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question:hover {
    color: var(--brand-light);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.3s var(--transition-smooth), color 0.3s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

.faq-answer {
    padding: 0 26px 22px;
    color: var(--text-secondary);
    font-size: var(--text-body);
    line-height: 1.65;
}

.faq-answer p {
    margin: 0;
}

/* --- Brief / Lead Magnet --- */
.brief-form {
    max-width: 720px;
    margin: 64px auto 0;
}

.brief-step {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px 32px 24px;
    margin-bottom: 16px;
    position: relative;
    transition: border-color 0.3s var(--transition-smooth);
}

.brief-step:hover,
.brief-step:focus-within {
    border-color: rgba(15, 118, 110, 0.25);
}

.brief-step-num {
    position: absolute;
    top: -14px;
    left: 28px;
    background: var(--brand-primary);
    color: white;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brief-step label {
    display: block;
    color: var(--text-primary);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.brief-form input,
.brief-form textarea,
.brief-form select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.brief-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A1A1A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
    cursor: pointer;
}

.brief-form input::placeholder,
.brief-form textarea::placeholder {
    color: var(--text-tertiary);
}

.brief-form input:focus,
.brief-form textarea:focus,
.brief-form select:focus {
    outline: none;
    border-color: rgba(0, 217, 196, 0.5);
    box-shadow: 0 0 16px var(--accent-glow);
}

.brief-form textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 1.5;
}

.brief-form .form-group {
    margin-bottom: 12px;
}

.brief-form .form-group:last-child {
    margin-bottom: 0;
}

.brief-form .form-row {
    margin-bottom: 12px;
}

.brief-form button[type="submit"] {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .brief-step {
        padding: 28px 22px 20px;
    }

    .brief-step-num {
        left: 22px;
    }
}
