/* ============================================
   HIERARK — PREMIUM SAAS THEME
   Inspired by Stripe / Linear / Vercel
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('fontawesome-all.min.css');

/* ─── Design Tokens ─── */
:root {
    --bg-main: #FAFBFC;
    --bg-white: #FFFFFF;
    --bg-subtle: #F1F5F9;
    --accent: #635BFF;
    /* Stripe-like Purple-Blue */
    --accent-light: #7C75FF;
    --accent-bg: rgba(99, 91, 255, 0.08);
    --accent-secondary: #00D4AA;
    /* Teal/Mint */
    --text-primary: #0A0A0A;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-subtle: #F3F4F6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.04);
    --radius: 16px;
    --radius-sm: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ─── */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-light);
}

h1,
h2,
h3 {
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    max-width: 56ch;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.75;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* ─── Layout ─── */
#wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

section {
    width: 100%;
    padding: 2.5rem 2rem;
    /* Reduced from 4rem for more compactness */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

section header {
    max-width: 700px;
    margin-bottom: 1.5rem;
}

section header p {
    margin-left: auto;
    margin-right: auto;
}

.content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ─── HERO ─── */
.intro {
    min-height: 50vh;
    /* Reduced from 60vh */
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    padding-bottom: 1.5rem;
    /* Reduced from 2rem */
}

/* Specific tight spacing for the first section after hero */
#first {
    padding-top: 2rem;
}

/* Subtle gradient orbs */


.intro header {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.intro h1 {
    background: linear-gradient(135deg, #0A0A0A 0%, #374151 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.intro p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-left: auto;
    margin-right: auto;
}

/* ─── Buttons ─── */
.actions {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-white);
    color: var(--text-primary);
    text-decoration: none;
}

.button.primary {
    background: var(--accent);
    color: #FFF;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(99, 91, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(99, 91, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: var(--accent-light);
    color: #FFF;
}

/* ─── Section alternating backgrounds ─── */
/* ─── Section alternating backgrounds ─── */
section:nth-child(even) {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
}

section:nth-child(odd) {
    background: rgba(250, 251, 252, 0.4);
    backdrop-filter: blur(12px);
}

.intro {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
}

/* ─── Global Background Animation ─── */
body::before {
    content: '';
    position: fixed;
    top: -20vh;
    left: -10vw;
    width: 90vw;
    height: 90vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: float 15s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20vh;
    right: -10vw;
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.20) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: float 18s ease-in-out infinite reverse;
}

/* ─── Separator Lines ─── */
section+section {
    border-top: 1px solid var(--border-subtle);
}

/* ─── Card Grid ─── */
.ui-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

/* Gradient top bar on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card:hover::before {
    opacity: 1;
}

.card .icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    background: var(--accent-bg);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    transition: all 0.3s;
}

.card:hover .icon-wrapper {
    background: var(--accent);
    color: #FFF;
    transform: scale(1.05);
}

.text-wrapper strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.text-wrapper p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ─── Centered Cards (Benefits) ─── */
.card.center {
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 1.5rem;
}

.card.center span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.icon-ghost {
    color: var(--accent);
    opacity: 0.7;
}

/* ─── Highlight Box (Differentiator) ─── */
.highlight-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-secondary));
    border-radius: 4px 0 0 4px;
}

.highlight-box h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.highlight-box p {
    margin: 0;
}

/* ─── Contact ─── */
#contact {
    background: var(--bg-white);
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    text-align: center;
}

.contact-item h3 {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.contact-item a,
.contact-item span {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
}

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

.cta-wrapper {
    margin: 2rem 0;
}

footer {
    margin-top: 4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
}

/* ─── Reveal animation (on load) ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.intro header {
    animation: fadeUp 0.8s ease-out;
}

.intro .actions {
    animation: fadeUp 0.8s ease-out 0.15s both;
}

section:not(.intro) header {
    animation: fadeUp 0.6s ease-out;
}

.card {
    animation: fadeUp 0.5s ease-out both;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    section {
        padding: 4rem 1.25rem;
    }

    section header {
        margin-bottom: 2.5rem;
    }

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

    .contact-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .highlight-box {
        padding: 2rem;
    }
}