/* =========================
   SoraSub Hybrid Aesthetic
   (Luxury Readability + Editorial Brutalism)
========================= */
:root {
    --bg-main: #060606;
    --bg-surface: #0f0f0f;
    --text-primary: #f0f0f0;
    --text-secondary: #999999;
    --accent-acid: #ccff00; /* Brutalist flair */
    --accent-blue: #0A84FF;
    --border-light: rgba(255, 255, 255, 0.15);
    --border-hard: #333333;
    
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.mono-text {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background-color: var(--accent-acid);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor-dot.hovering {
    width: 30px; height: 30px;
    opacity: 0.4;
    background-color: var(--text-primary);
    box-shadow: none;
}

/* Ambient subtle background glows */
.ambient-glow {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}
.bg-left { top: -10%; left: -10%; background: var(--accent-blue); }
.bg-right { bottom: 20%; right: -10%; background: var(--accent-acid); }

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(6, 6, 6, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-hard);
    z-index: 100;
}
.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}
.logo-icon {
    width: 24px; height: 24px;
    color: var(--text-primary);
}
.nav-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text-primary); }

.primary-btn {
    background: var(--text-primary);
    color: var(--bg-main);
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    border: 1px solid var(--text-primary);
}
.primary-btn:hover {
    background: var(--accent-acid);
    color: var(--bg-main);
    border-color: var(--accent-acid);
}

/* Page Wrapper */
.page-wrapper {
    padding: 10rem 5% 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    max-width: 850px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Brutalist tendency to left-align */
    margin-bottom: 5rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--accent-acid);
    margin-bottom: 2rem;
}
.rec-dot {
    width: 8px; height: 8px;
    background-color: #ff3b3b;
    border-radius: 50%;
    animation: blink 2s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.display-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

/* Editorial Highlight */
.highlight-wrap {
    display: inline-block;
    position: relative;
    padding: 0 0.2rem;
}
.highlight-wrap::before {
    content: '';
    position: absolute;
    bottom: 8%; left: 0; right: 0;
    height: 40%;
    background-color: var(--accent-acid);
    z-index: -1;
    transform: rotate(-1deg);
}
.highlight-text {
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 650px;
    line-height: 1.7;
}

/* Sharp Brutalist Form with SaaS polish */
.hero-actions {
    width: 100%;
    max-width: 500px;
}
.sharp-form {
    display: flex;
    border: 1px solid var(--border-hard);
    background: var(--bg-surface);
    transition: border-color 0.3s;
}
.sharp-form:focus-within {
    border-color: var(--accent-acid);
}
.sharp-form input {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-hard);
    padding: 1.2rem 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}
.sharp-form input::placeholder { color: #666; }

.sharp-form button {
    background: var(--text-primary);
    color: var(--bg-main);
    border: none;
    padding: 0 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.sharp-form button:hover {
    background: var(--accent-acid);
}
.sharp-form button.loading {
    background: var(--bg-surface);
    color: transparent;
}
.btn-loader {
    display: none;
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid var(--text-secondary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.sharp-form button.loading .btn-loader { display: block; }
.form-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    display: block;
}

/* Marquee Bar (Brutalist logic, high readability) */
.feature-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-top: 1px solid var(--border-hard);
    border-bottom: 1px solid var(--border-hard);
    padding: 1.5rem 0;
    overflow: hidden;
    margin-bottom: 6rem;
    background: var(--accent-acid);
    color: var(--bg-main);
}
.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-size: 1rem;
    font-weight: 700;
}
.marquee-content span { padding: 0 2rem; }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Common Section */
.details-section {
    margin-bottom: 8rem;
}
.section-heading.left-align {
    text-align: left;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-hard);
    padding-bottom: 1rem;
}
.section-heading h2 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.section-heading p { 
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.bento-card {
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid var(--border-hard);
    padding: 2.5rem;
    transition: border-color 0.3s, background 0.3s;
}
.bento-card:hover { 
    border-color: rgba(255,255,255,0.3); 
    background: rgba(255, 255, 255, 0.02);
}
.full-width { grid-column: span 2; }
.bg-offset {
    background: radial-gradient(circle at right top, rgba(204, 255, 0, 0.05), transparent 50%);
}

.card-meta {
    font-size: 0.85rem;
    color: var(--accent-acid);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-hard);
    display: inline-block;
}
.bento-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.bento-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.pipeline-track {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-items: center;
}
.pipeline-track span {
    background: var(--border-hard);
    padding: 0.2rem 0.6rem;
    color: var(--text-primary);
}

/* Cases Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.case-item {
    border-top: 1px solid var(--border-hard);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
}
.case-img {
    width: 100%;
    height: 220px;
    margin-bottom: 1.5rem;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-item:hover .case-img {
    opacity: 1;
    transform: scale(1.02);
}
.case-1 { background-image: url('./assets/case-1.png'); }
.case-2 { background-image: url('./assets/case-2.png'); }
.case-3 { background-image: url('./assets/case-3.png'); }

.case-item h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.case-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Footer & Toast */
.site-footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border-hard);
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-mail {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-mail:hover {
    color: var(--accent-acid);
}
.elegant-toast {
    position: fixed;
    bottom: 2rem; right: 2rem;
    background: var(--accent-acid);
    color: var(--bg-main);
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border: 1px solid var(--bg-main);
}
.elegant-toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: auto; }
    .cases-grid { grid-template-columns: 1fr; }
    .hero-section { align-items: stretch; }
    .highlight-wrap::before { bottom: 0; }
}
