/*
 * Shift Foundation — Ledgerless Financial Protocol for Robinhood
 * Dark Brutalist Design System (shiftfdn.com)
 */

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

:root {
    --bg-dark: #121315;
    --bg-drawer: #18191c;
    --bg-card: rgba(24, 25, 28, 0.85);
    --border-line: rgba(255, 255, 255, 0.25);
    --border-hover: #ffffff;
    
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-sub: rgba(255, 255, 255, 0.82);
    
    --accent-green: #00c805;
    --accent-cyan: #00f0ff;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #363A42;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

/* Global Grid Overlay Background */
.grid-overlay {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.global-grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: rgba(18, 19, 21, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-line);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

/* Signature Pixel Bracket Button */
.btn-bracket {
    position: relative;
    border: 1px solid var(--border-line);
    background: #121315;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-bracket:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-bracket:active {
    background: #C4CCD9;
    color: #000000;
}

/* Pixel Corner Brackets Spans */
.corner-tl {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    transition: var(--transition);
}

.corner-tr {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
    transition: var(--transition);
}

.corner-bl {
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    transition: var(--transition);
}

.corner-br {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-bottom: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
    transition: var(--transition);
}

.btn-bracket:hover .corner-tl,
.btn-bracket:hover .corner-tr,
.btn-bracket:hover .corner-bl,
.btn-bracket:hover .corner-br {
    border-color: transparent;
}

/* Hero Section */
.hero-section {
    padding: 160px 2rem 100px;
    position: relative;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-sub);
    max-width: 720px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Section General */
.section-padding {
    padding: 7rem 2rem;
    position: relative;
}

/* Cards & Grid Containers */
.shift-card {
    position: relative;
    border: 1px solid var(--border-line);
    background: var(--bg-card);
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
}

.shift-card:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.shift-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.shift-card p {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Metallic Shift Robinhood Card Preview Mockup */
.metallic-card {
    background: linear-gradient(135deg, #1c1d22 0%, #0a0b0d 100%);
    border: 1px solid var(--border-line);
    border-radius: 16px;
    padding: 2.5rem;
    aspect-ratio: 1.586;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.metallic-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
    pointer-events: none;
}

.chip {
    width: 44px;
    height: 32px;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    border-radius: 6px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-white);
}

.comparison-table th, .comparison-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-line);
}

.comparison-table th {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Slide-out Waitlist Modal Drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: var(--bg-drawer);
    border-left: 1px solid var(--border-line);
    z-index: 205;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.drawer-panel.active {
    transform: translateX(0);
}

/* Fieldset Inputs in Drawer */
.drawer-fieldset {
    border: 1px solid #ffffff;
    padding: 6px 12px 10px;
    margin-bottom: 1.25rem;
}

.drawer-legend {
    padding: 0 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.drawer-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.drawer-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-line);
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: #0d0e10;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: #ffffff;
}
