/* 
    ABLE AJANS — Landing Page
    Version: 2.0
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Logo-derived palette */
    --orange-vivid:    #F55A00;   /* Core logo orange */
    --orange-soft:     #FF7A30;   /* Lighter accent */
    --orange-glow:     rgba(245, 90, 0, 0.18);
    --orange-mist:     rgba(245, 90, 0, 0.07);

    /* Background system */
    --bg-void:         #0A0B0E;   /* Deepest background */
    --bg-base:         #0E1014;   /* Page background */
    --bg-surface:      #12151A;   /* Card surfaces */
    --bg-elevated:     #181C22;   /* Elevated elements */

    /* Text hierarchy */
    --text-primary:    #F2F3F5;
    --text-secondary:  #9EA5B0;
    --text-tertiary:   #5A6072;

    /* Borders */
    --border-subtle:   rgba(255, 255, 255, 0.045);
    --border-soft:     rgba(255, 255, 255, 0.08);
    --border-medium:   rgba(255, 255, 255, 0.12);

    /* Radii */
    --radius-sm:       8px;
    --radius-md:       16px;
    --radius-lg:       28px;
    --radius-xl:       40px;
    --radius-full:     999px;

    /* Transitions */
    --ease-premium:    cubic-bezier(0.23, 1, 0.32, 1);
    --ease-smooth:     cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast:          0.25s var(--ease-smooth);
    --t-medium:        0.45s var(--ease-premium);
    --t-slow:          0.7s var(--ease-premium);

    /* Typography */
    --font-body:       'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-display:    'Outfit', 'Inter', system-ui, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================================
   AMBIENT BACKGROUND
   ============================================================ */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Soft radial gradient from logo orange */
.ambient-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse at 50% 0%,
        rgba(245, 90, 0, 0.12) 0%,
        rgba(245, 90, 0, 0.04) 45%,
        transparent 70%
    );
    filter: blur(1px);
}

/* Bottom-left warm accent */
.ambient-bg::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse,
        rgba(245, 90, 0, 0.06) 0%,
        transparent 65%
    );
}

/* Noise texture overlay */
.noise-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.35;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-void);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-premium);
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.preloader-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: preloader-pulse 2s ease-in-out infinite;
}

@keyframes preloader-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.preloader-bar {
    width: 120px;
    height: 1px;
    background: var(--border-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--orange-vivid), var(--orange-soft));
    border-radius: var(--radius-full);
    animation: preloader-load 1.5s var(--ease-premium) forwards;
}

@keyframes preloader-load {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.page-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--t-medium);
}

.nav-bar.scrolled {
    padding: 16px 40px;
    background: rgba(10, 11, 14, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
    height: 56px;
    object-fit: contain;
    opacity: 0;
    transition: var(--t-medium);
}

.nav-bar.scrolled .nav-logo {
    opacity: 1;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--orange-mist);
    border: 1px solid rgba(245, 90, 0, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--orange-soft);
    letter-spacing: 0.02em;
}

.nav-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--orange-vivid);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 48px;
    text-align: center;
    position: relative;
}

/* ---- Logo Block ---- */
.hero-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 460px;
    margin-bottom: 36px;
    will-change: transform;
}

/* Halo ring behind logo */
.logo-halo {
    position: absolute;
    inset: -32px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,90,0,0.1) 0%, transparent 70%);
    animation: halo-breathe 4s ease-in-out infinite;
}

@keyframes halo-breathe {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* Second outer ring */
.logo-halo-outer {
    position: absolute;
    inset: -64px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,90,0,0.04) 0%, transparent 65%);
    animation: halo-breathe 4s ease-in-out infinite 1s;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 12px 40px rgba(245, 90, 0, 0.28))
            drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
    transition: transform 0.6s var(--ease-premium);
    will-change: transform;
}

.hero-logo:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Eyebrow Pill */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    background: var(--orange-mist);
    border: 1px solid rgba(245, 90, 0, 0.18);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange-soft);
    margin-bottom: 40px;
}

/* ---- Headline ---- */
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
    /* Gradient text */
    background: linear-gradient(
        175deg,
        #FFFFFF 0%,
        rgba(242, 243, 245, 0.65) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-headline .accent {
    background: linear-gradient(
        135deg,
        var(--orange-vivid) 0%,
        var(--orange-soft) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Subline ---- */
.hero-subline {
    font-size: 1.05rem;
    line-height: 1.72;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 56px;
    font-weight: 400;
}

/* ---- CTA Group ---- */
.cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* Primary CTA */
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--orange-vivid);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    transition: var(--t-medium);
    box-shadow:
        0 0 0 0 rgba(245, 90, 0, 0),
        0 4px 24px rgba(245, 90, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

.btn-cta-primary:hover {
    background: #FF6B1A;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 4px rgba(245, 90, 0, 0.12),
        0 8px 32px rgba(245, 90, 0, 0.38);
    color: #fff;
    text-decoration: none;
}

.btn-cta-primary:active {
    transform: translateY(0px);
}

/* Secondary CTA */
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    transition: var(--t-medium);
    letter-spacing: -0.01em;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-medium);
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Social proof */
.social-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

.social-strip-divider {
    width: 1px;
    height: 14px;
    background: var(--border-subtle);
}

/* ============================================================
   DIVIDER LINE
   ============================================================ */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-soft) 25%,
        var(--border-soft) 75%,
        transparent 100%
    );
}

/* ============================================================
   SERVICES BAND
   ============================================================ */
.services-band {
    padding: 64px 24px;
    position: relative;
}

.services-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 36px;
}

.services-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1px;
    max-width: 860px;
    margin: 0 auto;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.service-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--bg-surface);
    transition: var(--t-medium);
    cursor: default;
    text-align: center;
}

.service-cell:hover {
    background: var(--bg-elevated);
}

.service-cell:hover .service-icon {
    color: var(--orange-soft);
    transform: translateY(-3px);
}

.service-icon {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    transition: var(--t-medium);
    line-height: 1;
}

.service-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

/* ============================================================
   INFO CARD
   ============================================================ */
.info-section {
    padding: 40px 24px 80px;
}

.info-card {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 52px 48px;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Top orange line accent */
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(245, 90, 0, 0.5),
        transparent
    );
}

.info-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange-soft);
    margin-bottom: 20px;
}

.info-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.info-card-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 36px;
}

.contact-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    padding: 28px 40px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-left {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.footer-right {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    color: rgba(134, 239, 172, 0.8);
}

.footer-status-dot {
    width: 5px;
    height: 5px;
    background: #4ade80;
    border-radius: 50%;
    animation: dot-pulse 2.5s ease-in-out infinite;
}

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: scroll-hint-in 1s var(--ease-premium) 2.5s forwards;
}

@keyframes scroll-hint-in {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.scroll-hint-label {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.scroll-hint-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, var(--border-soft), transparent);
    animation: scroll-line 2s ease-in-out infinite 2.5s;
}

@keyframes scroll-line {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.3; }
}

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */
.anim-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
}

.anim-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays: stagger children */
.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.35s; }
.anim-d4 { transition-delay: 0.5s; }
.anim-d5 { transition-delay: 0.65s; }
.anim-d6 { transition-delay: 0.8s; }
.anim-d7 { transition-delay: 0.95s; }

/* ============================================================
   GRID LINES
   ============================================================ */
.grid-lines {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
    opacity: 0.5;
}

/* ============================================================
   RESPONSIVE — Tablet (max 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Nav */
    .nav-bar {
        padding: 16px 20px;
    }

    .nav-bar.scrolled {
        padding: 12px 20px;
    }

    .nav-logo {
        height: 40px;
    }

    .nav-badge {
        font-size: 0.65rem;
        padding: 6px 12px;
    }

    /* Hero */
    .hero-section {
        padding: 90px 20px 48px;
        min-height: 100svh; /* safe-area aware */
    }

    .hero-logo-wrap {
        margin-bottom: 28px;
    }

    .hero-logo {
        max-width: 300px;
        height: auto;
    }

    .hero-eyebrow {
        font-size: 0.65rem;
        margin-bottom: 24px;
    }

    .hero-headline {
        font-size: clamp(1.9rem, 7.5vw, 2.8rem);
        letter-spacing: -0.03em;
        margin-bottom: 20px;
    }

    .hero-subline {
        font-size: 0.95rem;
        margin: 0 auto 36px;
    }

    /* CTAs */
    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 40px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    /* Social strip */
    .social-strip {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    /* Services */
    .services-band {
        padding: 48px 16px;
    }

    .services-grid {
        flex-wrap: wrap;
        background: transparent;
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-lg);
        overflow: hidden;
        gap: 0;
    }

    .service-cell {
        flex: 1 1 calc(33.33%);
        min-width: 90px;
        border-bottom: 1px solid var(--border-subtle);
    }

    /* Info card */
    .info-section {
        padding: 24px 16px 56px;
    }

    .info-card {
        padding: 36px 24px;
        border-radius: var(--radius-lg);
    }

    .info-card-title {
        font-size: 1.4rem;
    }

    .info-card-text {
        font-size: 0.88rem;
    }

    .contact-options {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .contact-options .btn-cta-primary,
    .contact-options .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .site-footer {
        padding: 20px 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
}

/* ============================================================
   RESPONSIVE — Mobile (max 480px)
   ============================================================ */
@media (max-width: 480px) {

    .hero-logo {
        max-width: 240px;
        height: auto;
    }

    .hero-headline {
        font-size: clamp(1.7rem, 9vw, 2.4rem);
    }

    .service-cell {
        flex: 1 1 calc(50%);
    }

    .services-grid {
        max-width: 100%;
    }

    .nav-badge {
        display: none; /* Hide on small screens */
    }
}

/* ============================================================
   RESPONSIVE — Very small (max 360px)
   ============================================================ */
@media (max-width: 360px) {
    .hero-logo {
        max-width: 200px;
        height: auto;
    }

    .hero-headline {
        font-size: 1.6rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        font-size: 0.85rem;
        padding: 14px 20px;
    }
}
