/* ====================================
   fiftysix.ai — Bold Editorial Theme
   ==================================== */

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

:root {
    --bg-deep: #0b0b0b;
    --bg-surface: #141414;
    --bg-elevated: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #fafafa;
    --text-secondary: rgba(250, 250, 250, 0.55);
    --text-muted: rgba(250, 250, 250, 0.3);
    --accent-1: #ff6b35;
    --accent-2: #ffc53d;
    --accent-3: #c084fc;
    --accent-4: #22d3ee;
    --gradient-hero: linear-gradient(135deg, #ff6b35 0%, #ffc53d 30%, #c084fc 60%, #22d3ee 100%);
    --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #ff8f5e 50%, #ffc53d 100%);
    --gradient-cool: linear-gradient(135deg, #c084fc 0%, #818cf8 50%, #22d3ee 100%);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);
    --font-display: 'Sora', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

::selection {
    background: rgba(255, 107, 53, 0.3);
    color: #fff;
}

/* --- Ambient Background --- */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.4;
}

.ambient-blob-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    top: -20%;
    left: -10%;
    animation: blobDrift 25s ease-in-out infinite;
}

.ambient-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.12) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation: blobDrift 20s ease-in-out infinite reverse;
}

.ambient-blob-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobPulse 15s ease-in-out infinite;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    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 baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    background: rgba(11, 11, 11, 0.7);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.logo-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-suffix {
    font-weight: 400;
    font-size: 16px;
    color: var(--text-secondary);
    margin-left: 2px;
    -webkit-text-fill-color: initial;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-warm);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 180px 24px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.15);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-1);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 48px;
    animation: fadeIn 0.8s ease-out;
}

.eyebrow-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
    animation: glow-pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(52px, 9vw, 120px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -4px;
    margin-bottom: 32px;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.title-gradient {
    display: block;
    background: var(--gradient-hero);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s ease infinite;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 580px;
    margin-bottom: 56px;
    letter-spacing: 0.2px;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero-sub strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* --- Bento Grid --- */
.bento {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.bento-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-gradient, var(--gradient-warm));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.bento-card:hover::after {
    opacity: 1;
}

.bento-emoji {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.bento-label {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.bento-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

a.bento-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.bento-arrow {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

a.bento-card-link:hover .bento-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* --- Contact Section --- */
.contact-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    text-align: center;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.contact-heading span {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: var(--radius-md);
    background: var(--gradient-warm);
    color: #0b0b0b;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 24px rgba(255, 107, 53, 0.25);
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.35);
}

.contact-btn svg {
    transition: transform 0.3s ease;
}

.contact-btn:hover svg {
    transform: translateX(4px);
}

.contact-email {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-elevated);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    padding: 0 48px 36px;
}

.footer-rule {
    height: 1px;
    background: var(--border);
    margin-bottom: 28px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* --- Resources Page --- */
.page-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 180px 24px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(44px, 8vw, 80px);
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 20px;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-hero-sub {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* --- Social Banner --- */
.social-banner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 40px auto;
    padding: 0 24px;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.social-banner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
}

.social-banner-card:hover {
    border-color: rgba(10, 102, 194, 0.4);
    background: rgba(10, 102, 194, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.social-banner-card svg {
    color: #0A66C2;
    flex-shrink: 0;
}

.social-banner-card .arrow {
    color: var(--text-muted);
    margin-left: auto;
    transition: transform 0.3s ease;
}

.social-banner-card:hover .arrow {
    transform: translateX(4px);
    color: var(--text-secondary);
}

/* --- Articles Grid --- */
.articles-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.articles-heading {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
    letter-spacing: -0.8px;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

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

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

.article-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.article-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.article-tag.ai {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-1);
    border: 1px solid rgba(255, 107, 53, 0.15);
}

.article-tag.sport {
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent-4);
    border: 1px solid rgba(34, 211, 238, 0.15);
}

.article-tag.strategy {
    background: rgba(192, 132, 252, 0.1);
    color: var(--accent-3);
    border: 1px solid rgba(192, 132, 252, 0.15);
}

.article-tag.demo {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.15);
}

.article-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-weight: 300;
}

.article-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Curated Tweets --- */
.tweets-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.tweets-sub {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 300;
}

.tweets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
}

.tweet-embed {
    min-width: 0;
    overflow: hidden;
}

.tweet-embed .twitter-tweet {
    margin: 0 !important;
}

@media (max-width: 700px) {
    .tweets-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Curated LinkedIn Posts --- */
.linkedin-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.linkedin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
}

.linkedin-embed {
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
}

@media (max-width: 700px) {
    .linkedin-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(255, 107, 53, 0.6), 0 0 24px rgba(255, 107, 53, 0.2);
    }

    50% {
        box-shadow: 0 0 4px rgba(255, 107, 53, 0.3), 0 0 8px rgba(255, 107, 53, 0.1);
    }
}

@keyframes blobDrift {

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

    25% {
        transform: translate(40px, -30px) scale(1.08);
    }

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

    75% {
        transform: translate(-40px, -20px) scale(1.03);
    }
}

@keyframes blobPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.6;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero {
        padding: 150px 20px 40px;
    }

    .hero-title {
        letter-spacing: -2px;
    }

    .bento {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
    }

    .bento-card {
        padding: 28px 24px;
    }

    .contact-section {
        padding: 40px 20px 60px;
    }

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

    .footer {
        padding: 0 20px 28px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .page-hero {
        padding: 150px 20px 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: -1.5px;
    }

    .logo-suffix {
        display: none;
    }

    .bento-emoji {
        font-size: 36px;
    }
}