:root {
    --bg-color: #000000;
    --card-bg: #1d1d1f;
    --card-hover: #29292b;
    --text-main: #f5f5f7;
    --text-dim: #86868b;
    --accent-primary: #2997ff;
    /* Apple Blue */
    --accent-gradient: linear-gradient(135deg, #2997ff 0%, #00f2ff 100%);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 52px;
    --radius-l: 30px;
    --radius-m: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 17px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Utilities --- */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 22px;
}

.text-gradient {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    background: #e2e2e5;
    transform: scale(1.02);
}

.subheadline {
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 30px;
    font-weight: 400;
}

/* --- Header --- */
header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 980px;
    /* Apple nav max-width */
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    color: #e8e8ed;
    opacity: 0.8;
}

.nav-links a:hover {
    color: #fff;
    opacity: 1;
}

.hamburger {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #fff;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Abstract image background */
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
    transform: scale(1.1);
    animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.2);
    }
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 700px;
    line-height: 1.4;
}

.hero-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.link-secondary {
    color: var(--accent-primary);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.link-secondary:hover {
    text-decoration: underline;
}

/* --- Hero Dock --- */
.hero-dock {
    margin-top: 60px;
    display: inline-flex;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    align-items: center;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    min-width: 80px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--text-dim);
    text-decoration: none;
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
    color: #fff;
}

.dock-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.dock-label {
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .hero-dock {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 20px;
        border-radius: 0;
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dock-item {
        min-width: 70px;
        background: rgba(29, 29, 31, 0.8);
        padding: 15px 10px;
    }
}

/* --- Bento Grid / Features --- */
.section {
    padding: 100px 0;
}

/* --- Bento Grid Section --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.nexus-card {
    background: rgba(20, 20, 23, 0.5) !important;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nexus-card:hover {
    border-color: rgba(41, 151, 255, 0.5) !important;
    box-shadow: 0 0 30px rgba(41, 151, 255, 0.15), 0 10px 40px rgba(0, 0, 0, 0.5);
    background: rgba(30, 30, 35, 0.6) !important;
    transform: translateY(-6px) scale(1.02);
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.card {
    background: rgba(22, 22, 24, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Apple-style subtle border */
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card p {
    color: #a1a1aa;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 450;
}

/* Card Sizes */
.span-2 {
    grid-column: span 2;
}

.span-row-2 {
    grid-row: span 2;
}

.span-3 {
    grid-column: span 3;
}

/* Specific Card Styles */
.card-dark {
    background: linear-gradient(145deg, rgba(20, 20, 23, 0.9), rgba(10, 10, 12, 1));
}

.card-gradient {
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.15), rgba(0, 0, 0, 0.4));
    border-color: rgba(41, 151, 255, 0.2);
}

.card-img-container {
    margin-top: auto;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease;
}

.card:hover .card-img-container {
    transform: scale(1.02);
}

.card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive Grid */
@media (max-width: 960px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .span-2 {
        grid-column: span 2;
    }

    .span-3 {
        grid-column: span 2;
    }

    .span-row-2 {
        grid-row: auto;
    }

    /* Reset tall items on tablet */
}

@media (max-width: 600px) {

    .bento-grid,
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .span-2,
    .span-3 {
        grid-column: span 1;
    }
}

/* Specific Card Tweaks */
.card-dark {
    background: #000;
    border: 1px solid #333;
}

.card-gradient {
    background: linear-gradient(180deg, #1d1d1f 0%, #101010 100%);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #2997ff 0%, #a855f7 50%, #ff0080 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(41, 151, 255, 0.5));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.nexus-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.6));
}

/* Mobile & Tablet */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu logic remains same */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(29, 29, 31, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px;
        text-align: center;
        height: 100vh;
    }

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

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

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

    .span-2,
    .span-3 {
        grid-column: span 1;
    }
}

/* --- Footer --- */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
}