/* ==========================================================================
   TST GmbH — Modern KI Website
   Design System: Dark Hero, Glass Cards, Gradient Accents
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --secondary: #4361ee;
    --accent: #00d4aa;
    --accent-light: #00f5c8;
    --bg: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #0f0f23;
    --text: #2d3436;
    --text-light: #636e72;
    --text-white: #ffffff;
    --text-muted: #b2bec3;
    --border: #e1e8ed;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --gradient: linear-gradient(135deg, var(--secondary), var(--accent));
    --gradient-text: linear-gradient(135deg, var(--secondary), var(--accent));
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --container: 1200px;
    --nav-height: 72px;
}

/* ---------- Skip Link (Accessibility) ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--secondary);
    color: white;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

/* ---------- Focus States (Accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.2);
}

.service-card:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    box-shadow: var(--shadow-lg);
}

.nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Container ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.5);
}

.btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
}

.btn-ghost {
    color: var(--text-white);
    border-color: rgba(255,255,255,0.2);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

.btn-nav {
    background: var(--gradient);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
}
.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.4);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.navbar.scrolled .nav-link { color: var(--text); }
.navbar.scrolled .nav-link:hover { color: var(--secondary); }
.navbar.scrolled .logo-text { color: var(--primary); }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo-text {
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    transition: color var(--transition);
}

.logo-accent { font-weight: 400; opacity: 0.8; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.navbar.scrolled .nav-link.active {
    color: var(--secondary);
    background: rgba(67, 97, 238, 0.08);
}

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all var(--transition);
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: rgba(67, 97, 238, 0.08);
    color: var(--secondary);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar.scrolled .nav-toggle span { background: var(--text); }

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--nav-height) + 40px) 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-dark);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(67, 97, 238, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(67, 97, 238, 0.08) 0%, transparent 40%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    color: var(--text-white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    align-self: center;
}

/* ---------- Services ---------- */
.services {
    padding: 120px 0;
    background: var(--bg-white);
}

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

.service-card {
    display: block;
    padding: 40px 32px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    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);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(0, 212, 170, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--secondary);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    transition: all var(--transition);
}

.service-card:hover .service-link {
    color: var(--accent);
}

/* ---------- Why TST ---------- */
.why-tst {
    padding: 120px 0;
    background: var(--bg);
}

.why-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.why-content h2 {
    margin-bottom: 20px;
}

.why-content > p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(0, 212, 170, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.why-feature h4 {
    margin-bottom: 4px;
    color: var(--primary);
}

.why-feature p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Tech Stack Visual */
.tech-stack-visual {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}

.tech-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(67, 97, 238, 0.2);
    animation: rotate-slow 30s linear infinite;
    will-change: transform;
}

@keyframes rotate-slow {
    to { transform: rotate(360deg); }
}

.tech-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--secondary);
    box-shadow: var(--shadow);
    transform: rotate(var(--angle)) translateX(140px) rotate(calc(-1 * var(--angle)));
    animation: counter-rotate 30s linear infinite;
    will-change: transform;
}

@keyframes counter-rotate {
    to { transform: rotate(calc(var(--angle) - 360deg)) translateX(140px) rotate(calc(-1 * (var(--angle) - 360deg))); }
}

.tech-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 40px rgba(67, 97, 238, 0.3);
}

.tech-center span {
    font-weight: 700;
    font-size: 1.1rem;
}

.tech-center small {
    font-size: 0.65rem;
    opacity: 0.8;
}

/* ---------- Process ---------- */
.process {
    padding: 120px 0;
    background: var(--bg-dark);
    color: var(--text-white);
}

.process .section-tag { color: var(--accent); }
.process .section-header h2 { color: var(--text-white); }
.process .section-header p { color: var(--text-muted); }

.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.process-step h3 {
    color: var(--text-white);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: var(--gradient);
    align-self: center;
    margin-top: 20px;
    flex-shrink: 0;
    opacity: 0.4;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 120px 0;
    background: var(--bg-white);
}

.cta-card {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(67, 97, 238, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(0, 212, 170, 0.15) 0%, transparent 50%);
}

.cta-card h2 {
    color: var(--text-white);
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
}

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

/* ---------- Footer ---------- */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.7;
}

.footer-contact a:hover { color: var(--accent); }

.footer-hours {
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a:hover { color: var(--accent); }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--primary);
    color: var(--text-white);
    padding: 20px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    font-size: 0.9rem;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-content a {
    color: var(--accent);
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--text-white);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* ---------- Page Header (for subpages) ---------- */
.page-header {
    background: var(--bg-dark);
    padding: calc(var(--nav-height) + 60px) 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(67, 97, 238, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 20%, rgba(0, 212, 170, 0.08) 0%, transparent 50%);
}

.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--text-white); margin-bottom: 12px; font-size: clamp(1.75rem, 5vw, 3rem); }
.page-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---------- Content Sections ---------- */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background: var(--bg);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }

.content-text h2 { margin-bottom: 20px; }
.content-text p { color: var(--text-light); margin-bottom: 16px; font-size: 1.05rem; }

.content-list {
    margin-top: 24px;
}

.content-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    color: var(--text);
}

.content-list .check-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(0, 212, 170, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    margin-top: 2px;
}

/* Use Cases Grid */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.usecase-card {
    padding: 32px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.usecase-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.usecase-card h4 { margin-bottom: 8px; color: var(--primary); }
.usecase-card p { color: var(--text-light); font-size: 0.9rem; }

/* Feature Box */
.feature-box {
    padding: 32px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
}

.feature-box:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 0 1px var(--secondary);
}

.feature-box .icon-lg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(0, 212, 170, 0.1));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

/* Contact Form */
.contact-form {
    max-width: 640px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.form-checkbox label {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Contact Page Form (replaces inline styles) */
.contact-page-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-page-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-page-form input,
.contact-page-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.contact-page-form textarea {
    resize: vertical;
}

.contact-page-form .privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-page-form .privacy-check input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    accent-color: var(--primary);
}

.contact-page-form .privacy-check label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 400;
}

.contact-page-form .privacy-check a {
    color: var(--primary);
}

.contact-page-form .btn {
    align-self: flex-start;
}

.contact-page-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

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

/* Info Grid for About page */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.info-card {
    text-align: center;
    padding: 40px 24px;
}

.info-card .stat-number {
    color: var(--secondary);
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Nav */
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(85vw, 360px);
        max-width: 360px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 100px 32px 32px;
        transition: right var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        align-items: flex-start;
        gap: 4px;
    }

    .nav-menu.active { right: 0; }

    .nav-link {
        color: var(--text);
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
    }
    .nav-link:hover { background: rgba(67, 97, 238, 0.08); color: var(--secondary); }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        background: transparent;
    }

    .btn-nav {
        margin-top: 16px;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    /* Layout */
    .service-card { padding: 28px 20px; }

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

    .process-steps {
        flex-direction: column;
    }

    .process-connector {
        width: 2px;
        height: 40px;
        align-self: center;
        margin: 0;
    }

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

    .content-grid.reverse { direction: ltr; }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero-stats {
        gap: 24px;
    }

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

    .cta-card {
        padding: 48px 24px;
    }
}

/* ---------- Sticky Mobile CTA ---------- */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 12px 16px;
    background: var(--bg-white);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.sticky-mobile-cta.visible {
    transform: translateY(0);
}
.sticky-mobile-cta .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .sticky-mobile-cta {
        display: block;
    }
    /* Pad footer so sticky CTA doesn't cover content */
    .footer {
        padding-bottom: 80px;
    }
}

/* ---------- Trust Badges ---------- */
.trust-section {
    padding: 60px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.trust-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.08), rgba(0, 212, 170, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .stat-divider { display: none; }

    .hero-stats { flex-direction: column; gap: 16px; }

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

/* ---------- Logo Image ---------- */
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Logo swap: white on dark bg, blue on light/scrolled bg */
.logo-blue { display: none; }
.navbar.scrolled .logo-white { display: none; }
.navbar.scrolled .logo-blue { display: block; }

/* Subpages: Navbar starts scrolled but page-header is dark →
   Keep white logo until user scrolls past the page-header */
.navbar.scrolled.at-top .logo-white { display: block; }
.navbar.scrolled.at-top .logo-blue { display: none; }
.navbar.scrolled.at-top .nav-link { color: rgba(255,255,255,0.85); }
.navbar.scrolled.at-top .nav-link:hover { color: white; }
.navbar.scrolled.at-top .logo-text { color: white; }
.navbar.scrolled.at-top { background: transparent; box-shadow: none; backdrop-filter: none; }
