/* =============================================================
   DokPath — Global Stylesheet
   All custom CSS centralised here. Tailwind handles utilities.
   ============================================================= */

/* ---------------------------------------------------------
   Base
--------------------------------------------------------- */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Manrope', sans-serif;
}

/* ---------------------------------------------------------
   Colour Helpers
--------------------------------------------------------- */
.gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.gradient-bg {
    background: linear-gradient(120deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* ---------------------------------------------------------
   Navigation
--------------------------------------------------------- */
.nav-link {
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

/* Animated underline on hover for nav links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3b82f6;
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
    width: 100%;
}

/* Keep the active link blue without relying on ::after alone */
.nav-link.active,
.nav-link[aria-current="page"] {
    color: #2563eb;
    font-weight: 600;
}

/* Suppress underline animation on the always-blue active link
   since it's already visually distinguished by colour */
.nav-link.text-blue-600::after {
    width: 100%;
    background-color: #3b82f6;
}

/* Language dropdown — CSS-only hover trigger */
.lang-dropdown:hover .lang-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.lang-menu {
    top: 100%;
    padding-top: 10px;
    margin-top: -5px;
}

/* Legacy dropdown used in pricing/contact nav */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* ---------------------------------------------------------
   CTA Buttons — global hover enhancements
--------------------------------------------------------- */

/* Primary blue CTA buttons */
a[href="contact"].bg-blue-600,
button[type="submit"].bg-blue-600,
a.bg-blue-600 {
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

a[href="contact"].bg-blue-600:hover,
button[type="submit"].bg-blue-600:hover,
a.bg-blue-600:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

/* Hero primary CTA — larger impact */
.hero-cta-primary {
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

/* Hero secondary ghost CTA */
.hero-cta-secondary {
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.hero-cta-secondary:hover {
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   Animations
--------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Legacy animate-on-scroll class (used by pricing / contact) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------
   Feature / Tech Cards
--------------------------------------------------------- */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px -8px rgba(59, 130, 246, 0.12),
                0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

/* Tech cards used on features.html */
.tech-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #f1f5f9;
    background: white;
    position: relative;
    overflow: hidden;
}

.tech-card:hover {
    transform: translateY(-6px);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px -8px rgba(59, 130, 246, 0.12),
                0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

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

/* Generic pillar / about cards */
.pillar-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px -6px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------------------
   How-it-works step connector line
   (vertical on mobile removed, horizontal connector on md+)
--------------------------------------------------------- */
.step-line {
    position: relative;
}

/* On desktop: horizontal line connecting steps */
@media (min-width: 768px) {
    .step-line::after {
        content: '';
        position: absolute;
        top: 32px; /* vertically centres with the icon */
        right: -2rem;
        width: calc(100% - 4rem);
        height: 1px;
        background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    }

    /* Do not draw a line after the last step */
    .step-line:last-child::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .step-line::after {
        display: none;
    }
}

/* ---------------------------------------------------------
   Hero sections — minimum height consistency
--------------------------------------------------------- */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* ---------------------------------------------------------
   Section spacing tokens
--------------------------------------------------------- */
.section-gap {
    padding-top: 6rem;    /* py-24 equivalent */
    padding-bottom: 6rem;
}

/* ---------------------------------------------------------
   Eyebrow / section label pills
--------------------------------------------------------- */
.eyebrow {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.15);
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------
   Solutions page — sector tag pill
--------------------------------------------------------- */
.sector-tag {
    padding: 4px 14px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

/* ---------------------------------------------------------
   Features page — security highlight
--------------------------------------------------------- */
.security-highlight {
    border-left: 4px solid #3b82f6;
}

/* ---------------------------------------------------------
   Contact form — polished input focus states
--------------------------------------------------------- */
.form-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #111827;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    outline: none;
}

.form-input:hover {
    border-color: #93c5fd;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background-color: #f8fbff;
}

.form-input::placeholder {
    color: #9ca3af;
}

/* ---------------------------------------------------------
   Pricing page — plan card base
--------------------------------------------------------- */
.plan-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0.75rem;
    background: white;
}

.plan-card:hover {
    transform: translateY(-4px);
}

/* Starter / Enterprise — neutral hover */
.plan-card--default:hover {
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.1);
}

/* Pro card — featured state with strong visual differentiation */
.plan-card--featured {
    border: 2px solid #3b82f6;
    box-shadow: 0 8px 32px -4px rgba(59, 130, 246, 0.22);
    background: linear-gradient(160deg, #ffffff 60%, #eff6ff 100%);
    position: relative;
}

.plan-card--featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px -8px rgba(59, 130, 246, 0.28);
}

/* Shimmer accent bar at top of featured card */
.plan-card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa, #2563eb);
    background-size: 200% 100%;
    border-radius: 0.75rem 0.75rem 0 0;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* "Most Popular" badge positioning */
.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 18px;
    border-radius: 99px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ---------------------------------------------------------
   Footer — consistent full footer
--------------------------------------------------------- */
.site-footer {
    background-color: #030712; /* gray-950 */
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer__inner {
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
}

.site-footer__logo {
    height: 2rem;
    width: auto;
    margin: 0 auto 2.5rem;
    opacity: 0.3;
    filter: grayscale(1) invert(1);
}

.site-footer__tagline {
    color: #6b7280;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
}

.site-footer__copy {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #374151;
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   Mobile menu
--------------------------------------------------------- */
#mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: white;
    border-top: 1px solid #f1f5f9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

#mobile-menu.open {
    display: flex;
}

#mobile-menu a {
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    border-bottom: 1px solid #f9fafb;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#mobile-menu a:hover,
#mobile-menu a.active {
    background-color: #eff6ff;
    color: #2563eb;
}

/* Hamburger button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease;
}

.hamburger:hover {
    background-color: #f3f4f6;
}

.hamburger span {
    display: block;
    height: 2px;
    background-color: #374151;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
    width: 100%;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------
   Accessibility — reduced motion
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
