/* ============================================
   KOWA SOLUTIONS — Premium Tech Landing Page
   ============================================ */

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

:root {
    --navy: #0B1B2B;
    --navy-light: #162d46;
    --navy-mid: #1a3a5c;
    --orange: #FF6A2B;
    --orange-light: #FF8F5E;
    --orange-glow: rgba(255, 106, 43, 0.35);
    --blue-glow: rgba(26, 58, 92, 0.4);
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --bg-dark: #060e18;
    --text: #1a1a2e;
    --text-light: #5a6170;
    --text-inv: #e0e6ed;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-dark: rgba(11, 27, 43, 0.7);
    --shadow-sm: 0 2px 8px rgba(11,27,43,0.06);
    --shadow-md: 0 8px 32px rgba(11,27,43,0.10);
    --shadow-lg: 0 16px 64px rgba(11,27,43,0.14);
    --shadow-glow: 0 0 40px var(--orange-glow);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section { padding: 120px 0; }

/* --- SECTION HEADERS --- */
.section-head { text-align: center; margin-bottom: 64px; }

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
    position: relative;
    padding-left: 20px;
}
.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 2px;
    background: var(--orange);
    transform: translateY(-50%);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 18px;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    padding: 14px 28px;
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover::before { opacity: 1; }

.glow-btn { box-shadow: 0 4px 24px var(--orange-glow); }
.glow-btn:hover { box-shadow: 0 8px 40px var(--orange-glow), 0 0 60px rgba(255,106,43,0.2); }

.btn-ghost {
    background: transparent;
    color: var(--navy);
    padding: 14px 28px;
    border: 1.5px solid rgba(11,27,43,0.2);
}
.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

.btn-nav {
    background: var(--orange);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
}
.btn-nav:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); }

.btn-full { width: 100%; justify-content: center; padding: 16px 28px; font-size: 16px; border-radius: var(--radius-md); }

/* --- NAVIGATION --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}
.nav.scrolled {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(11,27,43,0.06), var(--shadow-sm);
    padding: 10px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}
.nav-logo-icon { transition: var(--transition); line-height: 0; }
.nav-logo-icon img { width: 88px; height: 88px; object-fit: contain; }
.nav-logo:hover .nav-logo-icon { transform: scale(1.05); }

.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand { font-weight: 700; font-size: 22px; color: var(--navy); }
.nav-sub { font-size: 14px; color: var(--text-light); font-weight: 400; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a:not(.btn) {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition);
    border-radius: 1px;
}
.nav-links a:not(.btn):hover { color: var(--navy); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}
.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); }

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(165deg, #f0f4f8 0%, #fff 40%, #f7f8fa 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,106,43,0.18), transparent 70%);
    top: -10%; right: -5%;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(26,58,92,0.15), transparent 70%);
    bottom: -15%; left: -10%;
    animation-delay: -3s;
}
.hero-orb-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(255,106,43,0.12), transparent 70%);
    top: 40%; left: 30%;
    animation-delay: -5s;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,106,43,0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26,58,92,0.06) 0%, transparent 50%);
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.97); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.12;
    color: var(--navy);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero-accent {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}
.trust-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 8px var(--orange-glow);
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 8px var(--orange-glow); }
    50% { box-shadow: 0 0 20px var(--orange-glow); }
}

/* Hero terminal */
.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-terminal {
    position: relative;
    width: 380px;
    border-radius: var(--radius-lg);
    overflow: visible;
}
.hero-terminal-glass {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(11,27,43,0.95), rgba(22,45,70,0.9));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(11,27,43,0.3);
    z-index: 0;
}
.hero-terminal-body {
    position: relative;
    z-index: 1;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.terminal-dot--red { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green { background: #28c840; }
.terminal-title {
    margin-left: auto;
    font-size: 12px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
}

.terminal-screen {
    padding: 20px 20px 24px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13.5px;
    line-height: 1.9;
    color: rgba(224,230,237,0.85);
}

.terminal-line { white-space: nowrap; }
.terminal-hidden { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; }
.terminal-hidden.terminal-visible { opacity: 1; transform: translateY(0); }

.terminal-prompt {
    color: var(--orange);
    font-weight: 700;
    margin-right: 8px;
}
.terminal-typed {
    color: #fff;
    border-right: 2px solid var(--orange);
    padding-right: 2px;
}
.terminal-typed.done { border-right-color: transparent; }

.terminal-accent { color: var(--orange); font-weight: 600; }
.terminal-success { color: #28c840; font-weight: 700; }
.terminal-dim { color: rgba(224,230,237,0.4); }
.terminal-highlight { color: var(--orange); font-weight: 600; }

.terminal-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    background: rgba(255,106,43,0.12);
    color: var(--orange-light);
    font-size: 12px;
    margin: 0 2px;
}

.terminal-cursor {
    color: var(--orange);
    animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero floating badges */
.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    animation: floatBadge 4s ease-in-out infinite;
    z-index: 5;
}
.hero-float-1 { top: 15%; left: -20px; animation-delay: 0s; }
.hero-float-2 { bottom: 10%; right: -30px; animation-delay: -2s; }
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
}
.hero-scroll span { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-light); }
.hero-scroll-track {
    width: 2px;
    height: 32px;
    background: rgba(11,27,43,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.hero-scroll-thumb {
    width: 2px;
    height: 12px;
    background: var(--orange);
    border-radius: 2px;
    animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { transform: translateY(-12px); }
    100% { transform: translateY(32px); }
}

/* --- SERVICES --- */
.services { background: var(--bg-alt); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.svc-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
    transition: var(--transition);
}
.svc-card:hover { transform: translateY(-6px); }

.svc-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255,106,43,0.0), rgba(255,106,43,0.0));
    padding: 1px;
    transition: var(--transition-slow);
    z-index: 0;
}
.svc-card:hover .svc-card-glow {
    background: linear-gradient(135deg, var(--orange), var(--orange-light), var(--navy-mid));
}
.svc-card-glow::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-lg) - 1px);
    background: var(--bg);
    z-index: 0;
}

.svc-card-body {
    position: relative;
    z-index: 1;
    padding: 36px 28px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(11,27,43,0.06);
    transition: var(--transition);
    height: 100%;
}
.svc-card:hover .svc-card-body {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.svc-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    transition: var(--transition);
}
.svc-card:hover .svc-icon {
    filter: drop-shadow(0 0 12px var(--orange-glow));
    transform: scale(1.08);
}

.svc-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.svc-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}
.svc-simple {
    background: rgba(255,106,43,0.04);
    border-left: 3px solid var(--orange);
    padding: 12px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 14px;
    color: var(--text);
    line-height: 1.65;
}

.svc-list { display: flex; flex-direction: column; gap: 8px; }
.svc-list li {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    padding-left: 18px;
    position: relative;
}
.svc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-tag { margin-bottom: 12px; }
.about-content .section-title { text-align: left; margin-bottom: 20px; }

.about-text {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

.about-list { display: flex; flex-direction: column; gap: 20px; }
.about-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.about-list-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,106,43,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.about-list li strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
}
.about-list li span {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* About portrait */
.about-visual { display: flex; justify-content: center; }

.about-portrait { position: relative; width: 280px; }

.about-portrait-glow {
    position: absolute;
    inset: -20px;
    border-radius: 30px;
    background: radial-gradient(circle, rgba(255,106,43,0.12), transparent 70%);
    filter: blur(20px);
    animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.about-portrait-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid rgba(255,106,43,0.15);
    box-shadow: var(--shadow-lg);
    background: var(--navy);
}
.about-portrait-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.about-stat {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    z-index: 3;
    animation: floatBadge 5s ease-in-out infinite;
}
.about-stat-val { font-size: 22px; font-weight: 800; color: var(--orange); line-height: 1; }
.about-stat-lbl { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.about-stat-1 { top: -15px; right: -30px; animation-delay: 0s; }
.about-stat-2 { bottom: 60px; left: -40px; animation-delay: -1.5s; }
.about-stat-3 { bottom: -15px; right: -20px; animation-delay: -3s; }

/* --- PROCESS --- */
.process { background: var(--bg-alt); }

.process-timeline { position: relative; max-width: 700px; margin: 0 auto; }

.process-line {
    position: absolute;
    top: 0;
    left: 28px;
    width: 3px;
    height: 100%;
    background: rgba(11,27,43,0.08);
    border-radius: 3px;
    z-index: 0;
}
.process-line-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--orange), var(--orange-light));
    border-radius: 3px;
    transition: height 0.3s ease;
}

.process-steps { display: flex; flex-direction: column; gap: 48px; position: relative; z-index: 1; }

.process-step { display: flex; gap: 28px; align-items: flex-start; }

.process-marker {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid rgba(11,27,43,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}
.process-marker span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition);
}
.process-step.active .process-marker {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: var(--shadow-glow);
}
.process-step.active .process-marker span { color: #fff; }

.process-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.process-body p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- RESULTS --- */
.results { background: var(--navy); }
.results .section-tag { color: var(--orange); }
.results .section-tag::before { background: var(--orange); }
.results .section-title { color: #fff; }
.results .section-desc { color: var(--text-inv); opacity: 0.7; }

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.res-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.res-card:hover { transform: translateY(-6px); }

.res-card-inner {
    height: 100%;
    padding: 36px 28px;
    background: linear-gradient(165deg, rgba(26,58,92,0.5), rgba(11,27,43,0.8));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.res-card:hover .res-card-inner {
    border-color: rgba(255,106,43,0.2);
    box-shadow: 0 8px 32px rgba(255,106,43,0.1);
}

.res-metric { margin-bottom: 4px; }
.res-metric-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
    letter-spacing: -0.03em;
}
.res-metric-sym {
    font-size: 28px;
    font-weight: 700;
    color: var(--orange);
}
.res-metric-text {
    font-size: 48px;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}
.res-metric-lbl {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--orange-light);
    margin-bottom: 16px;
    font-weight: 500;
}

.res-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.res-card p {
    font-size: 14px;
    color: var(--text-inv);
    opacity: 0.7;
    line-height: 1.6;
}

.res-hover {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: var(--transition);
}
.res-card:hover .res-hover { max-height: 100px; opacity: 1; }
.res-hover span {
    font-size: 12px;
    color: var(--text-inv);
    opacity: 0.5;
    line-height: 1.6;
}

/* --- CONTACT --- */
.contact { background: var(--bg); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info .section-tag { margin-bottom: 12px; }
.contact-info .section-title { text-align: left; margin-bottom: 16px; }

.contact-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 28px;
}

.contact-meta { display: flex; flex-direction: column; gap: 14px; }
.contact-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

/* Contact form */
.contact-form-wrap {
    background: var(--bg);
    border: 1px solid rgba(11,27,43,0.06);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}
.form-full { grid-column: 1 / -1; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}
.form-opt { font-weight: 400; color: var(--text-light); }

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font);
    font-size: 15px;
    padding: 12px 16px;
    border: 1.5px solid rgba(11,27,43,0.12);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
    outline: none;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,106,43,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b0b8c4; }

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a6170' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

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

.form-error {
    font-size: 12px;
    color: #e74c3c;
    display: none;
    margin-top: 2px;
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}
.form-group.error .form-error { display: block; }

/* Dropzone */
.form-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 20px;
    border: 2px dashed rgba(11,27,43,0.12);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(247,248,250,0.5);
}
.form-dropzone:hover,
.form-dropzone.dragover {
    border-color: var(--orange);
    background: rgba(255,106,43,0.03);
}
.form-dropzone p { font-size: 14px; color: var(--text-light); margin: 0; }
.dropzone-link { color: var(--orange); font-weight: 600; cursor: pointer; }
.form-dropzone small { font-size: 12px; color: #b0b8c4; }

.form-files { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.form-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
}
.form-file button {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 2px;
}

/* Submit button states */
#submitBtn { position: relative; }
.btn-loading, .btn-done { display: none; }
#submitBtn.loading .btn-label { visibility: hidden; }
#submitBtn.loading .btn-loading { display: flex; align-items: center; justify-content: center; position: absolute; inset: 0; }
#submitBtn.done .btn-label { display: none; }
#submitBtn.done .btn-done { display: inline; }
#submitBtn.done { background: #27ae60; box-shadow: 0 4px 24px rgba(39,174,96,0.3); pointer-events: none; }

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- FOOTER --- */
.footer {
    background: var(--bg-dark);
    padding: 40px 0;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { font-size: 15px; color: #fff; font-weight: 700; }
.footer-brand span { font-size: 12px; color: var(--text-inv); opacity: 0.5; }

.footer-links, .footer-legal { display: flex; gap: 20px; }
.footer-links a, .footer-legal a {
    font-size: 13px;
    color: var(--text-inv);
    opacity: 0.6;
    transition: var(--transition);
}
.footer-links a:hover, .footer-legal a:hover { opacity: 1; color: var(--orange); }

/* --- ANIMATIONS --- */
.anim-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.anim-reveal.anim-right {
    transform: translateX(40px);
}
.anim-reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}
.anim-d1 { transition-delay: 0.12s; }
.anim-d2 { transition-delay: 0.24s; }
.anim-d3 { transition-delay: 0.36s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-content { order: 1; }
    .hero-visual { order: 0; }
    .hero-ctas { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-float-1 { left: 10px; }
    .hero-float-2 { right: 10px; }
    .hero-scroll { display: none; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-visual { order: -1; }
    .about-content .section-title { text-align: center; }
    .about-content .section-tag { display: block; text-align: center; padding-left: 0; }
    .about-content .section-tag::before { display: none; }
    .about-text { text-align: center; }
    .about-list { align-items: center; }
    .results-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-info { text-align: center; }
    .contact-info .section-title { text-align: center; }
    .contact-info .section-tag { display: block; text-align: center; padding-left: 0; }
    .contact-info .section-tag::before { display: none; }
    .contact-meta { align-items: center; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 24px;
        box-shadow: -8px 0 32px rgba(11,27,43,0.1);
        transition: var(--transition);
    }
    .nav-links.open { right: 0; }
    .nav-links a:not(.btn)::after { display: none; }

    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-title { font-size: clamp(28px, 7vw, 42px); }
    .hero-terminal { width: 320px; }
    .terminal-screen { font-size: 12px; }

    .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .results-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

    .process-line { left: 20px; }
    .process-marker { width: 42px; height: 42px; min-width: 42px; }
    .process-marker span { font-size: 14px; }
    .process-step { gap: 20px; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }

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

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 60px 0; }
    .section-head { margin-bottom: 40px; }

    .hero-float { display: none; }
    .hero-terminal { width: 280px; }
    .terminal-screen { font-size: 11px; padding: 14px 14px 18px; }

    .about-portrait { width: 220px; }
    .about-stat { padding: 8px 12px; }
    .about-stat-val { font-size: 18px; }
    .about-stat-1 { right: -15px; }
    .about-stat-2 { left: -20px; }
    .about-stat-3 { right: -10px; }

    .res-metric-num, .res-metric-text { font-size: 36px; }
}
