/* ========================================
   Alipaz Partners — Landing Page Styles
   Ice & Deep Slate / Dusk Gradient
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---- Light Mode (default) ---- */
:root {
    --bg-gradient: linear-gradient(150deg, #eaf2f8 0%, #d0e4f0 50%, #b8d4e8 100%);
    --bg-section: #dce8f2;
    --bg-card: rgba(255, 255, 255, 0.5);
    --bg-card-hover: rgba(255, 255, 255, 0.7);
    --nav-bg: rgba(234, 242, 248, 0.75);
    --text-primary: #18202e;
    --text-secondary: #526070;
    --text-muted: #6b7a8a;
    --accent: #2a3f6e;
    --btn-primary-bg: #18202e;
    --btn-primary-text: #eaf2f8;
    --btn-ghost-border: rgba(24, 32, 46, 0.2);
    --border-subtle: rgba(24, 32, 46, 0.08);
    --icon-bg: #18202e;
    --icon-color: #eaf2f8;
    --badge-bg: rgba(42, 63, 110, 0.1);
    --badge-text: #2a3f6e;
    --carrier-filter: none;
    --transition: 0.3s ease;
}

/* ---- Dark Mode ---- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-gradient: linear-gradient(150deg, #1e2840 0%, #162038 50%, #0e1628 100%);
        --bg-section: #172030;
        --bg-card: rgba(255, 255, 255, 0.04);
        --bg-card-hover: rgba(255, 255, 255, 0.08);
        --nav-bg: rgba(30, 40, 64, 0.8);
        --text-primary: #dce8f4;
        --text-secondary: #7a90a8;
        --text-muted: #5e7288;
        --accent: #90b8d8;
        --btn-primary-bg: #dce8f4;
        --btn-primary-text: #1e2840;
        --btn-ghost-border: rgba(220, 232, 244, 0.2);
        --border-subtle: rgba(220, 232, 244, 0.08);
        --icon-bg: #dce8f4;
        --icon-color: #1e2840;
        --badge-bg: rgba(144, 184, 216, 0.12);
        --badge-text: #90b8d8;
        --carrier-filter: none;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Spectral', serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Spectral', serif;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--btn-ghost-border);
}

.btn-ghost:hover {
    background: rgba(24, 32, 46, 0.04);
    border-color: rgba(24, 32, 46, 0.3);
}

@media (prefers-color-scheme: dark) {
    .btn-ghost:hover {
        background: rgba(220, 232, 244, 0.06);
        border-color: rgba(220, 232, 244, 0.3);
    }
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ---- Nav ---- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

.logo-light { display: block; }
.logo-dark { display: none; }

@media (prefers-color-scheme: dark) {
    .logo-light { display: none; }
    .logo-dark { display: block; }
}

.nav-divider {
    width: 1px;
    height: 28px;
    background: var(--text-primary);
    opacity: 0.15;
}

.nav-brand-text {
    font-family: 'Spectral', serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn):not(.nav-sign-in) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:not(.btn):not(.nav-sign-in):hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 16px;
}

.nav-sign-in {
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-sign-in:hover {
    color: var(--text-primary) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- Hero ---- */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    padding: 80px 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.accent-text {
    color: var(--accent);
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Trust Bar ---- */

.trust-bar {
    padding: 60px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-section);
}

.trust-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-logos img {
    height: 36px;
    width: auto;
    opacity: 0.75;
    filter: var(--carrier-filter);
    transition: opacity var(--transition);
}

.trust-logos img:hover {
    opacity: 1;
}

/* ---- Section Titles ---- */

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 48px;
}

/* ---- Features ---- */

.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    padding: 36px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(42, 63, 110, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    .feature-card:hover {
        border-color: rgba(144, 184, 216, 0.2);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 2px;
    background: var(--icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--icon-color);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- Free Tools Teaser ---- */

.tools-teaser {
    padding: 100px 0;
    background: var(--bg-section);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tool-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    padding: 36px;
    transition: transform var(--transition), border-color var(--transition);
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(42, 63, 110, 0.2);
}

@media (prefers-color-scheme: dark) {
    .tool-card:hover {
        border-color: rgba(144, 184, 216, 0.2);
    }
}

.tool-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 2px;
    background: var(--badge-bg);
    color: var(--badge-text);
    margin-bottom: 16px;
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---- How It Works ---- */

.how-it-works {
    padding: 100px 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 56px;
}

.step {
    text-align: center;
    max-width: 280px;
    flex-shrink: 0;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: var(--border-subtle);
    margin-top: 28px;
    flex-shrink: 0;
}

/* ---- CTA Banner ---- */

.cta-banner {
    padding: 100px 0;
    background: var(--bg-section);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner .container {
    position: relative;
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

/* ---- Footer ---- */

.footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 64px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
    max-width: 260px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.powered-by {
    opacity: 0.5;
}

/* ---- Animations ---- */

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ---- Responsive ---- */

/* Tablet landscape / small desktop */
@media (max-width: 1024px) {
    .features-grid {
        gap: 20px;
    }

    .feature-card {
        padding: 28px;
    }

    .steps {
        gap: 0;
    }

    .step-connector {
        width: 48px;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Nav - hamburger menu */
    .nav-toggle {
        display: flex;
        z-index: 10;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        flex-direction: column;
        padding: 24px 20px;
        gap: 8px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a:not(.btn):not(.nav-sign-in) {
        padding: 12px 0;
        font-size: 1rem;
    }

    .nav-actions {
        flex-direction: column;
        margin-left: 0;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-subtle);
        width: 100%;
        gap: 12px;
    }

    .nav-sign-in {
        text-align: center;
        padding: 12px 0;
        font-size: 1rem !important;
    }

    .nav-actions .btn {
        width: 100%;
        padding: 14px 20px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 72px;
    }

    .hero-content {
        padding: 56px 20px 64px;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 20px;
    }

    .hero h1 br {
        display: none;
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 32px;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    /* Trust Bar */
    .trust-bar {
        padding: 40px 0;
    }

    .trust-label {
        font-size: 0.75rem;
        margin-bottom: 24px;
    }

    .trust-logos {
        gap: 28px;
    }

    .trust-logos img {
        height: 26px;
    }

    /* Sections */
    .features {
        padding: 64px 0;
    }

    .tools-teaser {
        padding: 64px 0;
    }

    .how-it-works {
        padding: 64px 0;
    }

    .cta-banner {
        padding: 64px 0;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 12px;
    }

    .section-title br {
        display: none;
    }

    .section-sub {
        font-size: 1rem;
        margin-bottom: 36px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-card:hover {
        transform: none;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    /* Tools */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tool-card {
        padding: 24px;
    }

    .tool-card:hover {
        transform: none;
    }

    /* Steps */
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-top: 36px;
    }

    .step {
        max-width: 100%;
        padding: 0 12px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .step-connector {
        width: 2px;
        height: 32px;
        margin: 8px auto;
    }

    /* CTA */
    .cta-banner h2 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .cta-banner p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    /* Footer */
    .footer {
        padding-top: 40px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer-links {
        gap: 48px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Touch active states */
    .feature-card:active {
        border-color: rgba(42, 63, 110, 0.2);
    }

    .tool-card:active {
        border-color: rgba(42, 63, 110, 0.2);
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-inner {
        padding: 0 16px;
    }

    .nav-brand-text {
        font-size: 11px;
        letter-spacing: 0.12em;
    }

    .nav-logo-img {
        height: 26px;
    }

    .nav-divider {
        height: 22px;
    }

    .hero-content {
        padding: 40px 16px 56px;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .trust-logos {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        gap: 20px 36px;
    }

    .trust-logos img {
        height: 24px;
    }

    .features {
        padding: 48px 0;
    }

    .tools-teaser {
        padding: 48px 0;
    }

    .how-it-works {
        padding: 48px 0;
    }

    .cta-banner {
        padding: 48px 0;
    }

    .feature-card {
        padding: 20px;
    }

    .tool-card {
        padding: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .btn-lg {
        padding: 13px 24px;
        font-size: 0.95rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .nav-brand-text {
        font-size: 10px;
    }

    .section-title {
        font-size: 1.35rem;
    }
}

/* Ensure touch targets are at least 44px */
@media (pointer: coarse) {
    .nav-links a:not(.btn) {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .footer-col a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}
