/*
 * Tech Design System
 * A clean black/white/#9b111e palette for Mike Rubini Tech
 * Based on the Jazz Design System
 * ============================================================
 */

/* ==========================================================================
   CSS Variables - Design Tokens
   ========================================================================== */
:root {
    /* Colors - Unified Palette */
    --tech-accent: #9b111e;
    --tech-accent-dark: #7a0d17;
    --tech-accent-light: #c41426;
    --tech-black: #0a0a0a;
    --tech-dark: #1a1a1a;
    --tech-gray-dark: #2a2a2a;
    --tech-gray: #888888;
    --tech-gray-light: #e5e5e5;
    --tech-cream: #faf9f7;
    --tech-white: #ffffff;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--tech-dark);
    background-color: var(--tech-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headlines - Elegant Serif */
h1, h2, h3, h4, h5, h6,
.title {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--tech-black);
    letter-spacing: -0.02em;
}

.title.is-1 { font-size: 4rem; font-weight: 600; }
.title.is-2 { font-size: 3rem; font-weight: 600; }
.title.is-3 { font-size: 2.25rem; }
.title.is-4 { font-size: 1.75rem; }
.title.is-5 { font-size: 1.25rem; }
.title.is-6 { font-size: 1rem; }

.subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--tech-dark);
    line-height: 1.65;
}

/* Hero specific typography */
.hero .title.is-1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero .title.is-2 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero .subtitle.is-4 {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0;
    margin-top: 0;
    line-height: 1.7;
    max-width: 600px;
}

/* Centered hero layout (Perell-style) */
.hero-centered {
    text-align: center;
}

.hero-centered .subtitle.is-4 {
    margin-left: auto;
    margin-right: auto;
}

.hero-centered .hero-buttons {
    justify-content: center;
}

.hero-centered .hero-image {
    max-width: 500px;
    margin: var(--space-lg) auto 0;
    border-radius: 4px;
    overflow: hidden;
}

.hero-centered .hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hero .title.is-1 {
        font-size: 2.75rem;
    }
    .hero .title.is-2 {
        font-size: 2.5rem;
    }
    .hero .subtitle.is-4 {
        font-size: 1.1rem;
    }
    .hero-centered .hero-image {
        max-width: 100%;
        margin-top: var(--space-md);
    }
}

/* Section titles */
.section-feature-description {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--tech-dark);
}

/* ==========================================================================
   Color Overrides - Unified Black/White/#9b111e Palette
   ========================================================================== */

/* Text highlight - replaces inline <x> tags */
.text-accent {
    color: var(--tech-accent);
}

/* Underline effect - local version */
.underline-accent {
    background-repeat: repeat-x;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 9'%3E%3Cpath d='M0 4.5c7 0 7-4 14-4s7 4 14 4' fill='none' stroke='%239b111e' stroke-width='2'/%3E%3C/svg%3E");
    background-position: 0 1em;
    background-size: 28px 9px;
}

/* Links */
a {
    color: var(--tech-accent);
    transition: color var(--transition-fast);
}

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

/* Title divider */
.title-divider {
    display: block;
    background: var(--tech-accent) !important;
    width: 60px;
    height: 3px;
    margin: 1rem 0 !important;
}

/* Scroll button */
.scroll-button {
    background-color: var(--tech-accent) !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 10;
}

.scroll-button i {
    color: var(--tech-white) !important;
    font-size: 1.25rem;
}

.scroll-button:hover {
    transform: translateY(5px);
    background-color: var(--tech-accent-light) !important;
}

/* ==========================================================================
   Buttons - Clean Tech Style
   ========================================================================== */

.button.button-cta {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    padding: 1rem 2rem;
    border-radius: 0;
    transition: all var(--transition-medium);
}

/* Primary button */
.button.button-cta.primary-btn,
.button.button-cta.secondary-btn:not(.btn-outlined) {
    background-color: var(--tech-accent);
    border-color: var(--tech-accent);
    color: var(--tech-white);
}

.button.button-cta.primary-btn:hover,
.button.button-cta.secondary-btn:not(.btn-outlined):hover {
    background-color: var(--tech-accent-dark);
    border-color: var(--tech-accent-dark);
    transform: translateY(-2px);
}

/* Secondary/Outlined button */
.button.button-cta.btn-outlined {
    background-color: transparent;
    border: 2px solid var(--tech-black);
    color: var(--tech-black);
}

.button.button-cta.btn-outlined:hover {
    background-color: var(--tech-black);
    color: var(--tech-white);
    transform: translateY(-2px);
}

/* Button alignment helper */
.btn-align {
    min-width: 140px;
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

@media (max-width: 768px) {
    .hero-buttons {
        justify-content: center;
    }
}

/* ==========================================================================
   Hero Section - Clean Light Style for Tech
   ========================================================================== */

.hero.is-default {
    background-color: var(--tech-cream);
}

.hero.is-default .hero-body {
    padding-top: 0;
    padding-bottom: 0;
}

.hero.is-fullheight .hero-body {
    padding-top: 5rem;
}

/* Hero layout */
.hero-layout {
    position: relative;
    min-height: 600px;
}

.hero-content-col {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58%;
    z-index: 10;
}

.hero-image-col {
    position: absolute;
    top: 0;
    right: calc(-50vw + 50%);
    bottom: 0;
    width: calc(65% + 50vw - 50%);
}

/* Hero image with accent border */
.hero-image-box {
    position: relative;
    display: block;
    height: 100%;
}

.hero-image-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 12px;
    background: var(--tech-accent);
    z-index: 2;
}

.hero-image-box::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 12px;
    background: var(--tech-accent);
    z-index: 2;
}

.hero-image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
    filter: grayscale(100%);
}

/* Hero Card */
.hero-card {
    background: var(--tech-cream);
    padding: var(--space-lg);
    position: relative;
    z-index: 3;
}

.hero-card .title {
    margin-bottom: var(--space-sm);
}

.hero-card .subtitle {
    margin-bottom: var(--space-md);
}

@media (max-width: 1024px) {
    .hero.is-default .hero-body {
        padding-top: var(--space-md);
        padding-bottom: var(--space-md);
    }
    .hero-layout {
        min-height: auto;
    }
    .hero-content-col {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        text-align: center;
    }
    .hero-image-col {
        display: none;
    }
    .hero-card {
        padding: var(--space-md);
        background: transparent;
    }
    .hero-newsletter-form {
        justify-content: center;
    }
    .press-logos-inline {
        text-align: center;
    }
    .press-logos-inline .press-logos-row {
        justify-content: center;
    }
}

/* Hero Newsletter Form */
.hero-newsletter-form {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.hero-newsletter-form .input,
.hero-newsletter-form .button {
    height: 48px !important;
    padding: 0 1rem !important;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 0 !important;
    box-sizing: border-box;
    line-height: 48px;
}

.hero-newsletter-form .input {
    min-width: 0;
    border: 1px solid var(--tech-gray-light) !important;
    background: var(--tech-white) !important;
    color: var(--tech-black);
    outline: none;
    transition: border-color var(--transition-fast);
    box-shadow: none !important;
}

.hero-newsletter-form .input[name="name"] {
    flex: 0 0 130px;
}

.hero-newsletter-form .input[name="email"] {
    flex: 0 0 250px;
}

.hero-newsletter-form .button {
    flex: 0 0 140px;
}

.hero-newsletter-form .input::placeholder {
    color: var(--tech-gray);
}

.hero-newsletter-form .input:focus {
    border-color: var(--tech-accent) !important;
    box-shadow: none !important;
}

.hero-newsletter-form .button {
    padding: 0 1.5rem !important;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    .hero-card {
        padding: var(--space-md);
    }
    .hero-card .subtitle.is-4 {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    .hero-newsletter-form {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .hero-newsletter-form .input,
    .hero-newsletter-form .button {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
        height: 50px !important;
        line-height: 50px;
    }
}

/* ==========================================================================
   Press Strip - "As Featured In"
   ========================================================================== */

.press-strip {
    background: var(--tech-white);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--tech-gray-light);
    border-bottom: 1px solid var(--tech-gray-light);
}

.press-strip-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tech-gray);
    text-align: center;
    margin-bottom: var(--space-md);
}

.press-strip .press-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
}

.press-strip .press-logo {
    height: 28px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all var(--transition-medium);
}

.press-strip .press-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .press-strip {
        padding: var(--space-md) 0;
    }
    .press-strip .press-logos {
        gap: var(--space-md);
    }
    .press-strip .press-logo {
        height: 22px;
    }
}

/* ==========================================================================
   Inline Press Logos (Hero section variant)
   ========================================================================== */

.press-logos-inline {
    margin-top: var(--space-sm);
}

.press-logos-inline .press-logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.press-logos-inline .press-logo {
    max-height: 35px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all var(--transition-medium);
}

.press-logos-inline .press-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   Section Backgrounds
   ========================================================================== */

.is-theme-grey,
.section-grey {
    background-color: var(--tech-cream) !important;
}

.section-dark {
    background-color: var(--tech-dark);
}

.section-dark .title,
.section-dark .subtitle,
.section-dark p {
    color: var(--tech-white);
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */

.newsletter-section {
    background: var(--tech-black);
    padding: var(--space-xl) 0;
}

.newsletter-section .title {
    margin-bottom: var(--space-sm);
    color: var(--tech-white);
}

.newsletter-section p {
    color: var(--tech-gray-light);
    margin-bottom: var(--space-md);
}

.newsletter-section .text-gray {
    color: var(--tech-gray-light);
}

.newsletter-section .input {
    background: var(--tech-dark);
    border-color: var(--tech-gray-dark);
    color: var(--tech-white);
}

.newsletter-section .input::placeholder {
    color: var(--tech-gray);
}

/* Centered newsletter layout */
.newsletter-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-form-centered {
    justify-content: center;
}

.newsletter-form-centered .input[name="name"] {
    flex: 0 0 auto;
    width: 140px;
    max-width: 140px;
}

.newsletter-form-centered .input[name="email"] {
    flex: 0 0 auto;
    width: 220px;
}

@media (max-width: 768px) {
    .newsletter-form-centered .input[name="name"],
    .newsletter-form-centered .input[name="email"] {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Form styling */
.newsletter-form .input {
    font-family: var(--font-body);
    border-radius: 0;
    border: 1px solid var(--tech-gray-light);
    padding: 1.25rem 1rem;
    transition: border-color var(--transition-fast);
}

.newsletter-form .input:focus {
    border-color: var(--tech-accent);
    box-shadow: none;
}

.newsletter-form label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tech-dark);
    margin-bottom: 0.5rem;
    display: block;
}

/* ==========================================================================
   Love Notes / Testimonials Section
   ========================================================================== */

.testimonials-section {
    background: var(--tech-cream);
    padding: var(--space-xl) 0;
}

.testimonials-section .title {
    margin-bottom: var(--space-xs);
}

.testimonials-section .subtitle-link {
    color: var(--tech-accent);
}

/* Twitter embeds - make them blend better */
.twitter-tweet {
    margin: 0 !important;
}

@media (max-width: 768px) {
    .testimonials-section .column.is-4 {
        display: flex;
        justify-content: center;
    }
}

/* ==========================================================================
   Content Cards / Posts
   ========================================================================== */

.main-post,
.side-post {
    margin-bottom: var(--space-md);
}

.post-image img {
    width: 100%;
    border-radius: 0;
}

.post-content {
    padding: var(--space-sm) 0;
}

.post-content h2,
.post-content h3 {
    font-family: var(--font-display);
    color: var(--tech-black);
}

.post-content p {
    font-family: var(--font-body);
    color: var(--tech-gray);
    line-height: 1.7;
}

.read-more {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tech-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: var(--space-sm);
    transition: all var(--transition-fast);
}

.read-more:hover {
    color: var(--tech-accent-dark);
    gap: 0.75rem;
}

/* ==========================================================================
   Mobile Navigation - Full Screen Overlay
   ========================================================================== */

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--tech-black);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.mobile-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
}

.mobile-nav-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--tech-gray);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 1;
}

.mobile-nav-close:hover {
    border-color: var(--tech-accent);
}

.mobile-nav-close::before,
.mobile-nav-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--tech-white);
}

.mobile-nav-close::before {
    transform: rotate(45deg);
}

.mobile-nav-close::after {
    transform: rotate(-45deg);
}

.mobile-nav-logo {
    margin-bottom: var(--space-lg);
    z-index: 1;
}

.mobile-nav-logo img {
    max-width: 150px;
    filter: brightness(0) invert(1);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
    z-index: 1;
}

.mobile-nav-links li {
    margin-bottom: var(--space-sm);
}

.mobile-nav-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--tech-white);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

.mobile-nav-links a:hover {
    color: var(--tech-accent);
    transform: translateX(10px);
}

.mobile-nav-links a.is-active {
    color: var(--tech-accent);
}

.mobile-nav-social {
    position: absolute;
    bottom: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    z-index: 1;
}

.mobile-nav-social a {
    width: 45px;
    height: 45px;
    border: 1px solid var(--tech-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tech-white);
    transition: all var(--transition-fast);
}

.mobile-nav-social a:hover {
    background: var(--tech-accent);
    border-color: var(--tech-accent);
}

/* ==========================================================================
   Footer - Enhanced
   ========================================================================== */

.footer.colored-footer {
    background: var(--tech-dark) !important;
    padding: var(--space-lg) 0 var(--space-md) !important;
}

.footer.colored-footer .footer-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap;
    gap: var(--space-md);
}

.footer.colored-footer .footer-block {
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.footer.colored-footer .footer-block.designed-by {
    flex: 1;
    text-align: left;
    color: var(--tech-gray);
}

.footer.colored-footer .designed-by i {
    color: var(--tech-accent);
}

.footer.colored-footer .footer-block.links {
    flex: 2;
    text-align: center;
}

.footer.colored-footer .links a {
    color: var(--tech-gray);
    text-decoration: none;
    margin: 0 var(--space-sm);
    transition: color var(--transition-fast);
}

.footer.colored-footer .links a:hover {
    color: var(--tech-white);
}

.footer.colored-footer .footer-block.social {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: var(--space-xs);
}

.footer.colored-footer .social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--tech-gray-dark);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tech-gray);
    transition: all var(--transition-fast);
}

.footer.colored-footer .social a:hover {
    background: var(--tech-accent);
    border-color: var(--tech-accent);
    color: var(--tech-white);
}

@media (max-width: 768px) {
    .footer.colored-footer .footer-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: var(--space-md);
    }
    .footer.colored-footer .footer-block.designed-by,
    .footer.colored-footer .footer-block.links,
    .footer.colored-footer .footer-block.social {
        flex: none;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Navbar Enhancements
   ========================================================================== */

.navbar.navbar-wrapper {
    border-bottom: 1px solid var(--tech-gray-light);
}

/* Navbar active state */
.navbar-brand a.navbar-item,
.navbar-brand a.navbar-item:hover {
    border-bottom: none !important;
    margin-bottom: 0;
}

a.navbar-item.is-active {
    color: var(--tech-accent) !important;
    border-bottom: 2px solid var(--tech-accent) !important;
    margin-bottom: -1px;
}

a.navbar-item:hover:not(.navbar-brand a) {
    color: var(--tech-accent) !important;
}

/* Newsletter CTA in navbar */
.navbar .button.button-cta.accent-btn {
    background-color: var(--tech-accent) !important;
    border-color: var(--tech-accent) !important;
    color: var(--tech-white) !important;
}

.navbar .button.button-cta.accent-btn:hover {
    background-color: var(--tech-accent-dark) !important;
    border-color: var(--tech-accent-dark) !important;
    box-shadow: 0 14px 26px -12px rgba(155, 17, 30, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(155, 17, 30, 0.2) !important;
}

/* ==========================================================================
   Sections Spacing
   ========================================================================== */

.section.is-medium {
    padding: var(--space-xl) var(--space-md);
}

.section.is-small {
    padding: var(--space-lg) var(--space-md);
}

/* ==========================================================================
   Misc Overrides
   ========================================================================== */

/* Card styling */
.flex-card {
    border-radius: 0;
}

/* Remove old color references */
.is-theme-grey {
    background-color: var(--tech-cream) !important;
}

/* Icon styling */
.icon-subtitle i {
    color: var(--tech-accent);
}

/* No margin helper */
.no-margin {
    margin-bottom: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section.is-medium {
        padding: var(--space-lg) var(--space-sm);
    }

    .title.is-2 {
        font-size: 2rem;
    }

    .title.is-3 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-xs) !important; }
.mt-2 { margin-top: var(--space-sm) !important; }
.mt-3 { margin-top: var(--space-md) !important; }
.mt-4 { margin-top: var(--space-lg) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-xs) !important; }
.mb-2 { margin-bottom: var(--space-sm) !important; }
.mb-3 { margin-bottom: var(--space-md) !important; }
.mb-4 { margin-bottom: var(--space-lg) !important; }

.text-center { text-align: center; }
.text-gray { color: var(--tech-gray); }

/* ==========================================================================
   Company Cards
   ========================================================================== */

.company-card {
    background: var(--tech-white);
    border: 1px solid var(--tech-gray-light);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.company-card:hover {
    border-color: var(--tech-accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.company-card-logo {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: var(--space-md);
}

.company-card-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tech-black);
    margin-bottom: var(--space-xs);
}

.company-card-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--tech-gray);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.company-card-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tech-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-fast);
}

.company-card-link:hover {
    gap: 0.75rem;
}

/* Page header */
.page-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.page-header .title {
    margin-bottom: var(--space-sm);
}

.page-header .subtitle {
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   Press Cards
   ========================================================================== */

.press-card {
    background: var(--tech-white);
    border: 1px solid var(--tech-gray-light);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.press-card:hover {
    border-color: var(--tech-accent);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.press-card-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    margin-bottom: var(--space-sm);
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-medium);
}

.press-card:hover .press-card-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.press-card-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tech-black);
    margin-bottom: var(--space-xs);
}

.press-card-description {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--tech-gray);
    line-height: 1.5;
}

/* ==========================================================================
   Mindset Page - Comparison Layout
   ========================================================================== */

.mindset-row {
    display: flex;
    width: 100%;
}

.mindset-row-reverse {
    flex-direction: row-reverse;
}

.mindset-col {
    flex: 1;
    padding: var(--space-xl) var(--space-lg);
}

.mindset-others {
    background: var(--tech-cream);
}

.mindset-mine {
    background: var(--tech-accent);
}

.mindset-content {
    max-width: 500px;
    margin: 0 auto;
}

.mindset-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-sm);
}

.mindset-others .mindset-label {
    color: var(--tech-gray);
}

.mindset-mine .mindset-label {
    color: rgba(255, 255, 255, 0.7);
}

.mindset-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.mindset-others .mindset-title {
    color: var(--tech-black);
}

.mindset-mine .mindset-title {
    color: var(--tech-white);
}

.mindset-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.mindset-others .mindset-text {
    color: var(--tech-gray);
}

.mindset-mine .mindset-text {
    color: rgba(255, 255, 255, 0.9);
}

.mindset-mine .mindset-text a {
    color: var(--tech-white);
    text-decoration: underline;
}

.mindset-mine .mindset-text a:hover {
    opacity: 0.8;
}

.mindset-others .mindset-text a {
    color: var(--tech-gray);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .mindset-row,
    .mindset-row-reverse {
        flex-direction: column;
    }
    .mindset-col {
        padding: var(--space-lg) var(--space-md);
    }
    .mindset-title {
        font-size: 1.5rem;
    }
}

/* Video Embed */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Error Page (404)
   ========================================================================== */

.error-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tech-cream);
}

.error-content {
    text-align: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 700;
    color: var(--tech-accent);
    line-height: 1;
    display: block;
    margin-bottom: var(--space-sm);
}

.error-content .title {
    margin-bottom: var(--space-sm);
}

@media (max-width: 768px) {
    .error-code {
        font-size: 5rem;
    }
}

/* ==========================================================================
   Newsletter Page
   ========================================================================== */

.newsletter-page-section {
    min-height: calc(100vh - 80px - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tech-cream);
    padding: var(--space-xl) 0;
}

.newsletter-page-content {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-page-content .title {
    margin-bottom: var(--space-sm);
}

.newsletter-page-content .text-gray {
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.newsletter-page-form {
    text-align: left;
}

.newsletter-page-fields {
    margin-bottom: var(--space-md);
}

.newsletter-page-fields .field {
    margin-bottom: var(--space-sm);
}

.newsletter-page-fields .label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tech-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.newsletter-page-fields .input {
    width: 100%;
    height: 50px;
    padding: 0 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--tech-gray-light);
    border-radius: 0;
    background: var(--tech-white);
    color: var(--tech-black);
    transition: border-color var(--transition-fast);
}

.newsletter-page-fields .input:focus {
    outline: none;
    border-color: var(--tech-accent);
}

.newsletter-page-fields .input::placeholder {
    color: var(--tech-gray);
}

.newsletter-page-form .button {
    width: 100%;
    height: 50px;
}

.newsletter-page-note {
    margin-top: var(--space-md);
}

.newsletter-page-note .text-gray {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Feature Rows (About, Maker Mindset sections)
   ========================================================================== */

.feature-row {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.feature-row-reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-content .title {
    margin-bottom: var(--space-xs);
}

.feature-content .text-gray {
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

.feature-content .text-gray:last-of-type {
    margin-bottom: 0;
}

.feature-content .read-more {
    margin-top: 0.5rem !important;
    display: block;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-image-bordered {
    position: relative;
}

.feature-image-bordered::before {
    content: '';
    position: absolute;
    right: -12px;
    bottom: -12px;
    width: 100%;
    height: 100%;
    border-right: 8px solid var(--tech-accent);
    border-bottom: 8px solid var(--tech-accent);
    z-index: 0;
}

.feature-image-bordered img {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .feature-row,
    .feature-row-reverse {
        flex-direction: column;
        gap: var(--space-md);
    }
    .feature-image {
        order: -1;
    }
}

/* ==========================================================================
   Newsletter Banner (Top of page)
   ========================================================================== */

.newsletter-banner {
    background: var(--tech-black);
    padding: var(--space-xl) 0;
    position: relative;
}

.newsletter-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.newsletter-banner .container {
    position: relative;
    z-index: 1;
}

.newsletter-banner-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-banner .title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--tech-white);
    margin-bottom: var(--space-sm);
}

.newsletter-banner .subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--tech-gray);
    margin-bottom: var(--space-md);
}

.newsletter-banner-form {
    display: flex;
    gap: 0;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-banner-form .input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--tech-gray-dark);
    border-right: none;
    border-radius: 0;
    background: var(--tech-dark);
    color: var(--tech-white);
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-banner-form .input::placeholder {
    color: var(--tech-gray);
}

.newsletter-banner-form .input:focus {
    border-color: var(--tech-accent);
}

.newsletter-banner-form .button {
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--tech-accent);
    color: var(--tech-white);
    border: 1px solid var(--tech-accent);
    border-radius: 0;
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.newsletter-banner-form .button:hover {
    background: var(--tech-accent-dark);
    border-color: var(--tech-accent-dark);
}

.newsletter-banner-note {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--tech-gray);
    margin-top: var(--space-sm);
}

@media (max-width: 768px) {
    .newsletter-banner {
        padding: var(--space-lg) 0;
    }
    .newsletter-banner .title {
        font-size: 1.75rem;
    }
    .newsletter-banner-form {
        flex-direction: column;
        gap: var(--space-xs);
    }
    .newsletter-banner-form .input {
        border-right: 1px solid var(--tech-gray-dark);
    }
    .newsletter-banner-form .button {
        width: 100%;
    }
}
