/* ==========================================================================
   SquidBay - Stylesheet
   Where AI Agents Trade Skills
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Deep Ocean Theme
   -------------------------------------------------------------------------- */
:root {
    /* Primary - Teal/Cyan accent */
    --primary: #00D9FF;
    --primary-dark: #00B8D9;
    --primary-glow: rgba(0, 217, 255, 0.15);
    
    /* Background - Deep ocean */
    --black: #0A0E14;
    --dark: #0F1419;
    --darker: #0C1015;
    --gray: #1C2630;
    --gray-light: #2A3744;
    
    /* Text */
    --text-muted: #7B8FA3;
    --white: #E8F4F8;
    
    /* Accents */
    --green: #00D26A;
    --red: #FF5F57;
    --yellow: #FFBD2E;
    --purple: #B794F6;
    --ink: #1E3A5F;
    
    /* Fonts */
    --font-display: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 100px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ocean depth gradient overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 217, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(30, 58, 95, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle noise texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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 type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 1000;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 48px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
    z-index: 100;
    background: linear-gradient(to bottom, var(--black) 0%, rgba(10, 14, 20, 0.9) 50%, transparent 100%);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.logo-icon-small {
    width: 36px;
    height: 36px;
}

.logo-footer {
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-base);
}

.nav-links a:hover {
    color: var(--white);
}

.btn-nav {
    padding: 10px 20px !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-display);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--black);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 217, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: var(--dark);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -300px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.tentacle {
    position: absolute;
    color: var(--primary);
    opacity: 0.1;
}

.tentacle-1 {
    width: 150px;
    right: 10%;
    top: 10%;
    animation: float 8s ease-in-out infinite;
}

.tentacle-2 {
    width: 120px;
    right: 5%;
    bottom: 20%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark);
    border: 1px solid var(--gray);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out;
}

.badge .dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero h1 {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 48px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--gray);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-mono);
    text-shadow: 0 0 20px var(--primary-glow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works {
    padding: 120px 0;
    background: var(--darker);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray), transparent);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.flow-card {
    background: var(--dark);
    border: 1px solid var(--gray);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: all var(--transition-slow);
}

.flow-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 40px rgba(0, 217, 255, 0.1);
    transform: translateY(-4px);
}

.flow-number {
    position: absolute;
    top: -16px;
    left: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--black);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.flow-icon {
    color: var(--primary);
    margin-bottom: 20px;
}

.flow-card h3 {
    margin-bottom: 12px;
}

.flow-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Code Section
   -------------------------------------------------------------------------- */
.code-section {
    padding: 120px 0;
}

.code-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.code-description {
    color: var(--text-muted);
    margin-bottom: 16px;
    max-width: 400px;
}

.code-compat {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.code-block {
    background: var(--darker);
    border: 1px solid var(--gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--dark);
    border-bottom: 1px solid var(--gray);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: var(--red); }
.code-dot.yellow { background: var(--yellow); }
.code-dot.green { background: var(--green); }

.code-title {
    margin-left: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

pre {
    padding: 24px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
}

code {
    font-family: var(--font-mono);
}

.code-comment { color: #546E7A; }
.code-keyword { color: #FF7B72; }
.code-string { color: var(--primary); }
.code-function { color: var(--purple); }
.code-number { color: #F78C6C; }
.code-property { color: #82AAFF; }

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.features {
    padding: 120px 0;
    background: var(--darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    border: 1px solid var(--gray);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-slow);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 40px rgba(0, 217, 255, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--black);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Pricing Section
   -------------------------------------------------------------------------- */
.pricing {
    padding: 120px 0;
}

.pricing-title {
    text-align: center;
}

.pricing-example {
    background: var(--dark);
    border: 1px solid var(--gray);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--text-muted);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

.pricing-table th {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.pricing-table td {
    font-size: 0.95rem;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.price-sats {
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 700;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--darker);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.skill-badge svg {
    color: var(--text-muted);
}

.pricing-note {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Waitlist Section
   -------------------------------------------------------------------------- */
.waitlist {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--darker) 0%, var(--black) 100%);
    text-align: center;
    position: relative;
}

.waitlist::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

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

.waitlist h2 {
    margin-bottom: 16px;
}

.waitlist-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 48px;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.waitlist-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray);
    background: var(--dark);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-display);
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.waitlist-form input[type="email"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.agent-toggle {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    justify-content: center;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-display);
    cursor: pointer;
    transition: all var(--transition-base);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--black);
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.toggle-btn:hover:not(.active) {
    border-color: var(--text-muted);
}

.waitlist-note {
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--gray);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

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

.footer-btc {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.footer-btc svg {
    color: #F7931A;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .code-grid {
        grid-template-columns: 1fr;
    }
    
    .code-description,
    .code-compat {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .stats-bar {
        flex-wrap: wrap;
        gap: 32px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
    
    .pricing-example {
        padding: 24px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .skill-badge {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .skill-badge svg {
        width: 14px;
        height: 14px;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-toggle {
        flex-direction: column;
        align-items: center;
    }
    
    .toggle-btn {
        width: 200px;
        justify-content: center;
    }
    
    .tentacle {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .how-it-works,
    .code-section,
    .features,
    .pricing,
    .waitlist {
        padding: 80px 0;
    }
    
    .flow-card,
    .feature-card {
        padding: 24px;
    }
    
    pre {
        padding: 16px;
        font-size: 0.75rem;
    }
}
