@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Foundation Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-accent: #f1f5f9;
    
    /* Brand Colors */
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --primary-hover: #1d4ed8;
    --secondary: #0f172a;
    --cyan: #06b6d4;
    
    /* Text Colors */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Borders & UI */
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

/* ==========================================================================
   RESET & NORMALIZE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
}

.flex-row, .flex-row-reverse {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.flex-row > *, .flex-row-reverse > * {
    flex: 1;
    min-width: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.bg-light, .bg-light-theme { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.bg-accent { background-color: var(--bg-accent); }
.bg-grid {
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 32px 32px;
}

.border { border: 1px solid var(--border); }
.border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-dashed { border: 1px dashed var(--border-dark); }

.border-radius-sm { border-radius: var(--radius-sm); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.bx-shadow-sm { box-shadow: 0 2px 15px rgba(0,0,0,0.03); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-main { color: var(--text-main); }
.color-primary { color: var(--primary); }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }
.pt-3 { padding-top: 1rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mr-2 { margin-right: 0.5rem; }
.w-100 { width: 100%; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.flex-1 { flex: 1; }

.highlight {
    color: var(--primary);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: padding var(--transition);
    padding: 1.25rem 0;
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.nav-cta::after {
    display: none;
}

.nav-cta {
    background-color: var(--primary);
    color: var(--bg-white) !important;
    padding: 0.85rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.nav-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding-top: 12rem;
    padding-bottom: 8rem;
    text-align: center;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 99px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hero-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.text-secondary-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.35em;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kick-text-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

#word2-container {
    min-width: 440px;
}

.kick-text {
    display: inline-flex;
    height: 1.35em;
    overflow: hidden;
    position: relative;
    padding: 0 0.5rem;
    border-bottom: 4px solid var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    text-align: center;
    width: 100%;
    justify-content: center;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn.small, .btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-dark);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: var(--bg-light);
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
.tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 99px;
}

.tag-title {
    display: inline-block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* Section Headers */
.page-header {
    padding: 10rem 0 5rem;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 5rem;
}

.section-head h2 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    margin-bottom: 1rem;
}

.section-head p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Tech Cards */
.tech-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    transition: all var(--transition);
    text-align: center;
}

.tech-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 2rem;
}

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-img .image-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-md);
}

/* Stats */
.stat-item {
    padding: 2rem 1rem;
}

.stat-item .number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.stat-item .symbol {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: 800;
    vertical-align: top;
}

.stat-item p {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    color: var(--text-main);
}

/* Image Wrapper */
.image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-accent);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

/* Sub-steps (Process / Methodology) */
.sub-step {
    margin-top: 2.5rem;
    padding-left: 2rem;
    border-left: 2px solid var(--border-dark);
    position: relative;
}

.sub-step::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.sub-step h5 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-num {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
}

.step-badge {
    text-align: center;
}

/* Service Block Ext */
.service-block {
    padding: 8rem 0;
}

.service-result {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: all var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px var(--primary-light);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' 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 1rem center;
    background-size: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--bg-light);
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-brand p {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

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

.footer-contact p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .card-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .flex-row, .flex-row-reverse { gap: 3rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    
    .nav-links { 
        display: none; 
    }
    .menu-toggle { display: flex; }
    .nav-links.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 2rem 1.5rem;
        border-bottom: 2px solid var(--primary);
        box-shadow: var(--shadow-lg);
        gap: 1.5rem;
        text-align: center;
        animation: slideDown 0.3s ease forwards;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-link { font-size: 1.1rem; }
    .nav-cta {
        display: inline-block;
        width: 100%;
        margin-top: 1rem;
    }
    
    .hero { padding-top: 8rem; padding-bottom: 5rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero-line { flex-direction: column; gap: 0.25rem; }
    .kick-text-container, #word2-container { min-width: 100%; }
    
    .flex-row, .flex-row-reverse { flex-direction: column; text-align: center; }
    
    .card-grid, .feature-grid, .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .sub-step { padding-left: 0; border-left: none; padding-top: 1rem; border-top: 2px solid var(--border-dark); text-align: left; }
    .sub-step::before { display: none; }
    
    .form-wrapper { padding: 2rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
}
