/* ============================================
   INFOZENSE — Light Zen Theme
   Clean, calm, lots of whitespace
   ============================================ */

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

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

:root {
    --black: #1a1a1a;
    --dark: #2d2d2d;
    --gray-900: #18181b;
    --gray-800: #27272a;
    --gray-700: #3f3f46;
    --gray-600: #52525b;
    --gray-500: #71717a;
    --gray-400: #a1a1aa;
    --gray-300: #d4d4d8;
    --gray-200: #e4e4e7;
    --gray-100: #f4f4f5;
    --gray-50: #fafafa;
    --white: #ffffff;
    --cream: #faf9f6;
    --warm-50: #fdfcfa;
    --warm-100: #f5f3ef;
    --warm-200: #ebe8e1;

    --red: #c9342e;
    --red-dark: #a3261f;
    --red-light: #fef5f4;
    --red-glow: rgba(201, 52, 46, 0.08);

    --blue: #2563eb;
    --blue-light: #eff6ff;
    --blue-glow: rgba(37, 99, 235, 0.08);
    --green: #059669;
    --green-light: #ecfdf5;
    --green-glow: rgba(5, 150, 105, 0.08);
    --purple: #7c3aed;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;

    --transition: 0.3s ease;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

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

h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { color: var(--gray-600); line-height: 1.8; }

.label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
    display: block;
}

.text-white { color: var(--white); }
.text-gray { color: var(--gray-500); }
.text-red { color: var(--red); }
.text-center { text-align: center; }

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

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 60px 0;
}

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

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

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

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--black);
}

.logo span { color: var(--red); }

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

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
    border-radius: 6px;
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--black);
    background: var(--gray-100);
}

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

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

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-trigger::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}

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

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

.nav-dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--gray-600);
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-dropdown-item:hover {
    color: var(--black);
    background: var(--gray-100);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    margin: 5px 0;
    transition: all var(--transition);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 52, 46, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--black);
    background: var(--gray-50);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

/* --- Cards --- */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; }

.card-accent-data { border-top: 3px solid var(--blue); }
.card-accent-ai { border-top: 3px solid var(--red); }
.card-accent-auto { border-top: 3px solid var(--green); }

/* --- Tags --- */
.tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 3px;
}

.tag-red { background: var(--red-light); color: var(--red); }
.tag-blue { background: var(--blue-light); color: var(--blue); }
.tag-green { background: var(--green-light); color: var(--green); }
.tag-outline { background: transparent; border: 1px solid var(--gray-200); color: var(--gray-600); }

/* --- Service Grid Table --- */
.service-grid {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.service-grid th,
.service-grid td {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.95rem;
    border: 1px solid var(--gray-200);
}

.service-grid th {
    background: var(--red-light);
    color: var(--red);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-grid td { color: var(--gray-600); }

.service-grid .layer-label {
    font-weight: 700;
    color: var(--black);
    background: var(--gray-50);
}

.service-grid a {
    color: var(--gray-600);
    transition: color var(--transition);
}

.service-grid a:hover {
    color: var(--red);
}

/* --- Check List --- */
.check-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.6;
}

.check-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
}

/* --- Icon Circle --- */
.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.icon-circle svg { width: 24px; height: 24px; }

.icon-red { background: var(--red-light); }
.icon-blue { background: var(--blue-light); }
.icon-green { background: var(--green-light); }
.icon-purple { background: #f5f3ff; }

/* --- Pillar Colors --- */
.pillar-data { border-left: 4px solid var(--blue); }
.pillar-ai { border-left: 4px solid var(--red); }
.pillar-auto { border-left: 4px solid var(--green); }

.dot-data { color: var(--blue); }
.dot-ai { color: var(--red); }
.dot-auto { color: var(--green); }

/* --- Timeline / Method Steps --- */
.method-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin: 40px 0;
}

.method-step {
    flex: 1;
    position: relative;
    padding: 0 16px;
    text-align: center;
}

.method-steps::before {
    content: "";
    position: absolute;
    top: 22px;
    left: calc(12.5% + 22px);
    right: calc(12.5% + 22px);
    height: 2px;
    background: var(--gray-300);
}

.method-steps { position: relative; }

.method-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 auto 14px;
    position: relative;
    z-index: 1;
}

.method-step h3 { font-size: 1rem; margin-bottom: 8px; }
.method-step p { font-size: 0.85rem; }

/* --- Product Card --- */
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card .check-list { flex: 1; }
.grid-2 { align-items: stretch; }

.product-card:hover {
    box-shadow: var(--shadow-md);
}

.badge {
    display: inline-block;
    background: var(--red-light);
    color: var(--red);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    padding: 100px 0;
    background: var(--red);
    color: var(--white);
}

.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-section .label { color: rgba(255,255,255,0.7); }
.cta-section .btn-primary { background: #fff; color: var(--red); font-weight: 700; }
.cta-section .btn-primary:hover { background: #f0f0f0; color: var(--red); }

/* --- Footer --- */
.footer {
    padding: 60px 0 40px;
    background: var(--white);
    color: var(--gray-600);
    border-top: 1px solid var(--gray-200);
}

.footer h4 {
    color: var(--black);
    margin-bottom: 16px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .logo { color: var(--black); }

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 280px;
    color: var(--gray-500);
}

.footer-links a {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--gray-500);
    transition: color var(--transition);
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding: 20px 24px 0;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p { font-size: 0.8rem; color: var(--gray-600); }

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--gray-500);
    transition: color var(--transition);
}

.social-links a:hover { color: var(--white); }

/* --- Backgrounds --- */
.bg-dark { background: var(--gray-900); color: var(--white); }
.bg-dark p { color: var(--gray-400); }
.bg-dark .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
.bg-dark .card:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); }
.bg-dark .card p { color: var(--gray-400); }
.bg-dark .check-list li { color: var(--gray-300); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark .tag-outline { border-color: rgba(255,255,255,0.15); color: var(--gray-300); }

.bg-dark-2 {
    background: var(--warm-100);
    border-top: 1px solid var(--warm-200);
    border-bottom: 1px solid var(--warm-200);
}
.bg-dark-2 .card { background: var(--white); box-shadow: var(--shadow-sm); }

.bg-cream { background: var(--cream); }

.bg-red { background: var(--red); color: var(--white); }

.bg-problem {
    background: #1a0a0a;
    border-top: 1px solid rgba(201,52,46,0.2);
    border-bottom: 1px solid rgba(201,52,46,0.2);
}
.bg-problem h2, .bg-problem h3 { color: #e8c8c8; }
.bg-problem p { color: #9a7a7a; }
.bg-problem .label { color: #c9342e; }
.bg-problem .check-list li { color: #b89090; }
.bg-problem .check-list li::before { color: #c9342e; }

/* Gradient blobs — subtle warm tones on light */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
}

.glow-red { background: #fca5a5; }
.glow-blue { background: #93c5fd; }

/* --- Service Grid Cards --- */
a.card {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.card:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
    box-shadow: var(--shadow-md);
}

a.card:hover h4 { color: var(--red); }

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

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }

    /* Hero section */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.5rem !important; }

    /* Service grid collapses to single column on mobile */
    [style*="grid-template-columns: 120px 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Platform tags - wrap properly */
    .grid-3 { gap: 32px !important; }

    /* Navigation */
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        padding: 16px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .nav.open .nav-link,
    .nav.open .nav-dropdown-trigger,
    .nav.open .btn {
        padding: 10px 0;
        font-size: 1rem;
    }
    .nav.open .btn {
        text-align: center;
        margin-left: 0 !important;
        margin-top: 8px;
    }
    .nav.open #lang-toggle {
        margin-left: 0 !important;
        margin-top: 8px;
        width: fit-content;
    }

    .menu-toggle { display: block; }

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

    /* Footer */
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    /* Service grid - hide column headers on mobile */
    .service-grid-header { display: none !important; }

    /* Service grid row label - make it a section title */
    .service-row > div:first-child {
        text-align: center;
        margin-bottom: 12px;
    }
    .service-row > div:first-child a {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        display: block;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--red);
    }

    /* Service grid rows - alternating backgrounds */
    .service-row {
        padding: 20px 12px !important;
        border-radius: 12px;
        margin-bottom: 12px !important;
    }
    .service-row-odd { background: #e8e4de; }
    .service-row-even { background: var(--white); border: 1px solid var(--gray-300); }

    /* Method steps */
    .method-steps { flex-direction: column; gap: 24px; align-items: center; }
    .method-steps::before { display: none !important; }
    .method-step::before { display: none; }
    .method-step { width: 100%; max-width: 320px; padding: 0 16px; }

    /* Hero padding */
    [style*="padding-top: 160px"] { padding-top: 120px !important; }
    [style*="padding-top: 140px"] { padding-top: 110px !important; }
    [style*="padding-bottom: 120px"] { padding-bottom: 60px !important; }
    [style*="padding-bottom: 100px"] { padding-bottom: 60px !important; }

    /* Buttons stack */
    .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
    .btn + .btn { margin-left: 0 !important; margin-top: 12px; }

    /* Venn diagram - smaller */
    svg[viewBox="0 0 600 520"] { max-width: 100%; height: auto; }

    /* CTA section */
    .cta-section { padding: 60px 0 !important; }
    .cta-section h2 { font-size: 1.5rem !important; }

    /* Label sizing */
    .label { font-size: 0.85rem !important; letter-spacing: 2px !important; }

    /* Contact form */
    .contact-form input,
    .contact-form select,
    .contact-form textarea { font-size: 16px; }

    /* Text max-width reset */
    [style*="max-width: 720px"],
    [style*="max-width: 700px"],
    [style*="max-width: 640px"],
    [style*="max-width: 600px"] {
        max-width: 100% !important;
    }

    /* Domain explanation section gap */
    [style*="gap: 64px"] { gap: 32px !important; }

    /* Cards padding */
    .card { padding: 24px !important; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.3rem !important; }
    .container { padding: 0 16px; }
    .btn-lg { width: 100%; text-align: center; display: block; }
    .btn + .btn { margin-top: 12px; }
}
