/* ===================================================
   Agentech Solutions — Premium B2B Site
   Palette: Deep navy + warm off-white + muted accent
   =================================================== */

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

:root {
    --navy:       #0B1120;
    --navy-mid:   #111827;
    --navy-light: #1F2937;
    --cream:      #F7F5F2;
    --white:      #FDFCFA;
    --text:       #E8E6E1;
    --text-mid:   #9CA3AF;
    --text-dim:   #6B7280;
    --accent:     #C8A467;
    --accent-hover:#D4B57A;
    --border:     rgba(255,255,255,0.06);
    --radius:     8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--navy);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Utility --- */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 28px;
}

.label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.accent { color: var(--accent); }
.dim    { color: var(--text-dim); font-weight: 400; }
.hide-mobile { }

/* --- Reveal animation base --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   NAVIGATION
   ========================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(11, 17, 32, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

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

.logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.25s;
}

.nav-links a:hover { color: var(--cream); }

.nav-cta {
    padding: 8px 22px !important;
    background: var(--accent) !important;
    color: var(--navy) !important;
    font-weight: 600 !important;
    border-radius: var(--radius);
    transition: background 0.25s, transform 0.25s !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
}

.mobile-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--cream);
    border-radius: 1px;
    transition: 0.3s;
}

.mobile-toggle span:first-child { top: 4px; }
.mobile-toggle span:last-child  { bottom: 4px; }

.mobile-toggle.active span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-toggle.active span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* =========================
   BUTTONS
   ========================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--navy);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 164, 103, 0.15);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 0;
    color: var(--text-mid);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s;
    border-bottom: 1px solid var(--border);
}

.btn-ghost:hover { color: var(--cream); border-color: var(--cream); }

.btn-full { width: 100%; padding: 16px; }

/* =========================
   HERO
   ========================= */
.hero {
    padding: 180px 0 120px;
}

.hero-tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--cream);
    margin-bottom: 28px;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 20px;
}

.hero-aside {
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* =========================
   TENSION (narrative section)
   ========================= */
.tension {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.tension-inner {
    max-width: 660px;
}

.tension-lead {
    font-size: 1rem;
    color: var(--text-mid);
    margin-bottom: 24px;
}

.tension-quote {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--cream);
    margin-bottom: 32px;
    padding-left: 24px;
    border-left: 2px solid var(--accent);
}

.tension-body {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 16px;
}

/* =========================
   APPROACH
   ========================= */
.approach {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.approach h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin-bottom: 64px;
}

.approach-block {
    display: flex;
    gap: 40px;
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.approach-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
    padding-top: 4px;
    letter-spacing: 0.02em;
}

.approach-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.approach-content p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 16px;
}

.approach-outcome {
    font-weight: 600;
    color: var(--cream) !important;
}

/* =========================
   PROCESS
   ========================= */
.process {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.process h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin-bottom: 64px;
}

.process-list {
    display: flex;
    flex-direction: column;
}

.process-item {
    display: flex;
    gap: 32px;
    padding: 36px 0;
    border-top: 1px solid var(--border);
}

.process-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
    padding-top: 2px;
    letter-spacing: 0.02em;
}

.process-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.process-item p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* =========================
   DIFFERENTIATORS
   ========================= */
.differ {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.differ h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin-bottom: 64px;
    line-height: 1.2;
}

.differ-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.differ-item {
    padding: 40px;
    background: var(--navy);
}

.differ-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.differ-item p {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* =========================
   WHO WE HELP
   ========================= */
.fit {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.fit h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin-bottom: 64px;
    line-height: 1.2;
}

.fit-items {
    display: flex;
    flex-direction: column;
}

.fit-item {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 40px;
}

.fit-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cream);
    flex-shrink: 0;
    width: 240px;
    letter-spacing: -0.01em;
}

.fit-item p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* =========================
   CONTACT
   ========================= */
.contact {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.contact-inner {
    max-width: 560px;
}

.contact h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin-bottom: 16px;
}

.contact-sub {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 48px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--navy-mid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--cream);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 164, 103, 0.08);
}

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

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

/* =========================
   FOOTER
   ========================= */
.footer {
    padding: 48px 0 28px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: -0.02em;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.25s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* =========================
   PAGE HEADER (interior pages)
   ========================= */
.page-header {
    padding: 160px 0 80px;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--cream);
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.75;
    max-width: 560px;
}

/* --- Active nav state --- */
.nav-links a.active {
    color: var(--cream);
}

/* =========================
   SERVICES PAGE
   ========================= */
.service-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
}

.service-header {
    display: flex;
    gap: 40px;
    margin-bottom: 48px;
}

.service-header-num {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
    padding-top: 6px;
    letter-spacing: 0.02em;
}

.service-header h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--cream);
    line-height: 1.2;
}

.service-header p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-top: 16px;
    max-width: 560px;
}

.service-details {
    display: flex;
    flex-direction: column;
}

.service-detail {
    display: flex;
    gap: 40px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.service-detail h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cream);
    flex-shrink: 0;
    width: 220px;
    letter-spacing: -0.01em;
}

.service-detail p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* =========================
   ABOUT PAGE
   ========================= */
.about-intro {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
}

.about-intro-text {
    max-width: 660px;
}

.about-intro-text p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-intro-text p:first-child {
    font-size: 1.2rem;
    color: var(--cream);
    font-weight: 500;
}

.values-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
}

.values-section h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--cream);
    margin-bottom: 56px;
}

.values-list {
    display: flex;
    flex-direction: column;
}

.value-item {
    display: flex;
    gap: 40px;
    padding: 36px 0;
    border-top: 1px solid var(--border);
}

.value-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cream);
    flex-shrink: 0;
    width: 220px;
    letter-spacing: -0.01em;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* =========================
   CONTACT PAGE
   ========================= */
.contact-page-form {
    max-width: 560px;
}

.contact-page-sidebar {
    padding-top: 8px;
}

.contact-page-sidebar h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 12px;
}

.contact-page-sidebar p {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-detail {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.contact-detail span {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.contact-detail p {
    font-size: 0.95rem;
    color: var(--cream);
    margin-bottom: 0;
}

.contact-layout-section {
    padding: 100px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
}

/* =========================
   INLINE CTA BAND
   ========================= */
.cta-band {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.cta-band h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cream);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-band p {
    font-size: 1rem;
    color: var(--text-mid);
    margin-bottom: 32px;
    max-width: 480px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: rgba(11, 17, 32, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }

    .hero { padding: 130px 0 80px; }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hide-mobile { display: none; }

    .tension, .approach, .process, .differ, .fit, .contact {
        padding: 80px 0;
    }

    .approach-block { flex-direction: column; gap: 16px; }

    .process-item { flex-direction: column; gap: 12px; }

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

    .fit-item {
        flex-direction: column;
        gap: 8px;
    }

    .fit-item h3 { width: auto; }

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

    .footer-top {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .service-header { flex-direction: column; gap: 12px; }
    .service-detail { flex-direction: column; gap: 8px; }
    .service-detail h3 { width: auto; }
    .value-item { flex-direction: column; gap: 8px; }
    .value-item h3 { width: auto; }
    .contact-layout { grid-template-columns: 1fr; gap: 48px; }
    .page-header { padding: 120px 0 60px; }
}
