/* DireTek Solutions — Editorial Fintech */

:root {
    --bg: #0a0c0f;
    --bg-elev: #12161c;
    --bg-soft: #161b22;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #e8ebf0;
    --text-dim: rgba(232, 235, 240, 0.62);
    --text-faint: rgba(232, 235, 240, 0.38);
    --accent: #00d4ff;
    --accent-dim: rgba(0, 212, 255, 0.14);
    --accent-glow: rgba(0, 212, 255, 0.35);
    --error: #ff6b6b;
    --success: #4ade80;

    --font-serif: 'Fraunces', 'Georgia', serif;
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

    --container: 1240px;
    --edge: clamp(20px, 4vw, 48px);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

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

/* Global grain/noise overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.5;
    mix-blend-mode: overlay;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
    opacity: 0.8;
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--edge);
    position: relative;
    z-index: 2;
}

/* ─── Kicker label (mono uppercase) ─── */
.kicker {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.kicker::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

/* ─── Header ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(10, 12, 15, 0.82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: var(--line);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px var(--edge);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    height: 52px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    font-variation-settings: "opsz" 48, "SOFT" 50;
    color: var(--text);
    letter-spacing: -0.01em;
}

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

.nav-menu a {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 0;
    position: relative;
    transition: color 0.25s ease;
}

.nav-menu a:hover {
    color: var(--text);
    opacity: 1;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.nav-menu .nav-cta {
    color: var(--text);
    border: 1px solid var(--line-strong);
    padding: 10px 18px;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.nav-menu .nav-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* ─── Hero ─── */
.hero {
    padding: 200px var(--edge) 120px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
    opacity: 0.7;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 60%);
    pointer-events: none;
    filter: blur(40px);
}

.hero-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: end;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--text);
    font-variation-settings: "opsz" 144, "SOFT" 50;
}

.hero h1 .accent {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
}

.hero h1 .serif-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 520px;
    margin: 32px 0 42px;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-left: 32px;
    border-left: 1px solid var(--line);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-stat-value {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero-stat-value .accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}

.hero-stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-faint);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid transparent;
    text-align: center;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '→';
    font-family: var(--font-mono);
    transition: transform 0.3s ease;
}

.btn:hover::after {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg);
    opacity: 1;
    box-shadow: 0 0 40px 0 var(--accent-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
}

/* ─── Section base ─── */
section {
    padding: 140px 0;
    position: relative;
    z-index: 2;
}

section#about { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    font-variation-settings: "opsz" 144;
    max-width: 880px;
    margin-bottom: 20px;
}

.section-title .accent {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
}

.section-subtitle {
    color: var(--text-dim);
    max-width: 600px;
    font-size: 1.05rem;
    margin-bottom: 72px;
}

.section-head {
    margin-bottom: 72px;
}

/* ─── About ─── */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 100px;
    align-items: start;
}

.about-text p {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.65;
    letter-spacing: -0.005em;
}

.about-highlights h3 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-faint);
    margin-bottom: 28px;
}

.about-highlights ul {
    list-style: none;
    counter-reset: hl;
}

.about-highlights li {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    counter-increment: hl;
    position: relative;
    padding-left: 60px;
    color: var(--text-dim);
    font-size: 0.98rem;
    line-height: 1.6;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.about-highlights li:last-child {
    border-bottom: 1px solid var(--line);
}

.about-highlights li::before {
    content: "0" counter(hl);
    position: absolute;
    left: 0;
    top: 26px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.08em;
}

.about-highlights li:hover {
    color: var(--text);
    padding-left: 68px;
}

.industries {
    border-top: 1px solid var(--line);
    padding-top: 48px;
}

.industries h3 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-faint);
    margin-bottom: 28px;
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}

.tag {
    font-family: var(--font-serif);
    font-weight: 400;
    font-variation-settings: "opsz" 144;
    font-size: 1.5rem;
    color: var(--text);
    padding: 0 20px;
    position: relative;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.tag:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -4px;
    color: var(--accent);
    font-size: 1.2rem;
}

.tag:hover { color: var(--accent); }

/* ─── Services ─── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.service-card {
    background: var(--bg);
    padding: 48px 40px;
    grid-column: span 4;
    position: relative;
    transition: background 0.4s ease;
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

.service-card:nth-child(1) { grid-column: span 6; }
.service-card:nth-child(2) { grid-column: span 6; }
.service-card:nth-child(3),
.service-card:nth-child(4),
.service-card:nth-child(5) { grid-column: span 4; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card:hover {
    background: var(--bg-elev);
}

.service-card:hover::before { width: 100%; }

.service-number {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-faint);
    letter-spacing: 0.14em;
    margin-bottom: 28px;
}

.service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 28px;
    position: relative;
    color: var(--accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 16px;
    font-variation-settings: "opsz" 144;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-top: auto;
}

/* ─── Contact ─── */
.contact {
    background: var(--bg-elev);
    border-top: 1px solid var(--line);
}

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

.contact-info {
    padding-right: 40px;
    border-right: 1px solid var(--line);
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.contact-item a,
.contact-item p {
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: -0.005em;
    transition: color 0.25s ease;
}

.contact-item a:hover {
    color: var(--accent);
    opacity: 1;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-faint);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    background: transparent;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--text);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

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

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

.form-message {
    padding: 14px 18px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    border-left: 2px solid;
}

.form-message.success {
    background: rgba(74, 222, 128, 0.08);
    color: var(--success);
    border-left-color: var(--success);
}

.form-message.error {
    background: rgba(255, 107, 107, 0.08);
    color: var(--error);
    border-left-color: var(--error);
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 8px;
}

/* ─── Footer ─── */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 100px 0 0;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--edge) 80px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 78px;
    width: auto;
    display: block;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
    font-variation-settings: "opsz" 48;
}

.footer-brand p {
    font-family: var(--font-serif);
    font-variation-settings: "opsz" 144;
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--text-dim);
    max-width: 400px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.site-footer h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-faint);
    margin-bottom: 24px;
}

.footer-contact a,
.footer-contact p {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dim);
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

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

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-dim);
    display: block;
    padding: 5px 0;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

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

.footer-wordmark {
    font-family: var(--font-serif);
    font-weight: 400;
    font-variation-settings: "opsz" 144;
    font-size: clamp(4rem, 14vw, 12rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--text);
    padding: 0 var(--edge);
    max-width: var(--container);
    margin: 0 auto 40px;
    overflow: hidden;
    white-space: nowrap;
}

.footer-wordmark .accent {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 24px var(--edge);
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p,
.footer-bottom span {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* ─── Reveal animation (JS-gated — no flash of hidden content without JS) ─── */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* Hero initial reveal */
.hero .reveal[data-delay="1"] { transition-delay: 0.1s; }
.hero .reveal[data-delay="2"] { transition-delay: 0.25s; }
.hero .reveal[data-delay="3"] { transition-delay: 0.4s; }
.hero .reveal[data-delay="4"] { transition-delay: 0.55s; }

/* ─── Responsive ─── */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        padding-left: 0;
        padding-top: 32px;
        border-left: none;
        border-top: 1px solid var(--line);
        gap: 40px;
    }

    .hero-stat { flex: 1 1 140px; }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        padding-right: 0;
        padding-bottom: 40px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .services-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .service-card:nth-child(n) { grid-column: span 3; }
    .service-card:nth-child(5) { grid-column: span 6; }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 24px var(--edge);
        gap: 0;
        display: none;
        align-items: flex-start;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 140px var(--edge) 80px;
    }

    section {
        padding: 90px 0;
    }

    .about-text p {
        font-size: 1.2rem;
    }

    .tag {
        font-size: 1.1rem;
        padding: 0 12px;
    }

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

    .service-card:nth-child(n) { grid-column: span 1; }
    .service-card { padding: 40px 28px; min-height: auto; }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .btn {
        justify-content: center;
    }

    .hero-stat-value { font-size: 2rem; }
}
