/* Base Styles and Variables */
:root {
    /* Light Mode Colors */
    --color-bg-light: #F8FAFC;
    --color-bg-alt-light: #F1F5F9;
    --color-primary-light: #00C58E;
    --color-secondary-light: #14B8A6;
    --color-accent-light: #4ADE80;
    --color-text-light: #111827;
    --color-text-muted-light: #4b5563;
    --color-border-light: rgba(0, 0, 0, 0.1);
    
    /* Code Block Colors - Light */
    --color-code-bg-light: #F1F5F9;
    --color-code-text-light: #334155;
    --color-code-keyword-light: #0B947A;
    --color-code-string-light: #5A67D8;
    --color-code-comment-light: #64748B;
    --color-code-function-light: #C05621;
    
    /* Dark Mode Colors */
    --color-bg-dark: #0F172A;
    --color-bg-alt-dark: #1E293B;
    --color-primary-dark: #00FFB2;
    --color-secondary-dark: #14B8A6;
    --color-accent-dark: #4ADE80;
    --color-text-dark: #E2E8F0;
    --color-text-muted-dark: #94A3B8;
    --color-border-dark: rgba(255, 255, 255, 0.1);
    
    /* Code Block Colors - Dark */
    --color-code-bg-dark: #1E293B;
    --color-code-text-dark: #E2E8F0;
    --color-code-keyword-dark: #00FFB2;
    --color-code-string-dark: #A3BFFA;
    --color-code-comment-dark: #94A3B8;
    --color-code-function-dark: #F6AD55;
    
    /* Default to Light Mode */
    --color-bg: var(--color-bg-light);
    --color-bg-alt: var(--color-bg-alt-light);
    --color-primary: var(--color-primary-light);
    --color-secondary: var(--color-secondary-light);
    --color-accent: var(--color-accent-light);
    --color-text: var(--color-text-light);
    --color-text-muted: var(--color-text-muted-light);
    --color-border: var(--color-border-light);
    --color-code-bg: var(--color-code-bg-light);
    --color-code-text: var(--color-code-text-light);
    --color-code-keyword: var(--color-code-keyword-light);
    --color-code-string: var(--color-code-string-light);
    --color-code-comment: var(--color-code-comment-light);
    --color-code-function: var(--color-code-function-light);
    
    /* Gradients and Effects */
    --gradient-primary: linear-gradient(90deg, #00C58E, #4ADE80, #14B8A6);
    --gradient-glow: radial-gradient(circle at center, rgba(0, 197, 142, 0.15) 0%, rgba(0, 197, 142, 0) 70%);
    --gradient-mesh: linear-gradient(45deg, rgba(0, 197, 142, 0.08) 0%, rgba(20, 184, 166, 0.08) 50%, rgba(15, 23, 42, 0.08) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(0, 197, 142, 0.5);
    --shadow-3d: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease-out;
    
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* Dark Mode Class */
.dark-mode {
    --color-bg: var(--color-bg-dark);
    --color-bg-alt: var(--color-bg-alt-dark);
    --color-primary: var(--color-primary-dark);
    --color-secondary: var(--color-secondary-dark);
    --color-accent: var(--color-accent-dark);
    --color-text: var(--color-text-dark);
    --color-text-muted: var(--color-text-muted-dark);
    --color-border: var(--color-border-dark);
    --color-code-bg: var(--color-code-bg-dark);
    --color-code-text: var(--color-code-text-dark);
    --color-code-keyword: var(--color-code-keyword-dark);
    --color-code-string: var(--color-code-string-dark);
    --color-code-comment: var(--color-code-comment-dark);
    --color-code-function: var(--color-code-function-dark);
    --gradient-mesh: linear-gradient(45deg, rgba(0, 255, 178, 0.08) 0%, rgba(20, 184, 166, 0.08) 50%, rgba(15, 23, 42, 0.08) 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
}

.selectable, input, textarea {
    -webkit-user-select: text; /* Safari */
    -moz-user-select: text; /* Firefox */
    -ms-user-select: text; /* IE 10+ */
    user-select: text; /* Standard syntax */
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Mesh */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    z-index: -1;
    opacity: 1;
    pointer-events: none;
}

/* Theme Toggle */
.theme-toggle {
    z-index: 1000;
}

.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

.dark-mode .sun-icon {
    display: block;
}

.dark-mode .moon-icon {
    display: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: rgba(0, 197, 142, 0.1);
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: rgba(0, 197, 142, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Coming Soon Badge and Pre-launch Text */
.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(90deg, #FF6B6B, #FF8E53);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
    animation: float 3s ease-in-out infinite;
}

.pre-launch-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    max-width: 90%;
}

/* Pulse Animation for Waitlist Buttons */
.pulse-animation {
    animation: pulse-glow 2s infinite;
    position: relative;
}

.pulse-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0.5;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 197, 142, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 197, 142, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 197, 142, 0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Waitlist Note */
.waitlist-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.0rem 0;
    z-index: 1600;
    background-color: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

.dark-mode header {
    background-color: rgba(15, 23, 42, 0.8);
}

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

.logo h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-weight: 500;
}

nav a:hover {
    color: var(--color-primary);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle at center, rgba(0, 197, 142, 0.15) 0%, rgba(0, 197, 142, 0) 70%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

#hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-stack {
    margin-top: 2rem;
}

.tech-stack p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.tech-logos {
    display: flex;
    gap: 1.5rem;
}

.tech-logos span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    position: relative;
}

.tech-logos span:not(:last-child)::after {
    content: "·";
    position: absolute;
    right: -0.9rem;
    color: var(--color-text-muted);
}

/* Animation Classes */
.animate-from-left {
    opacity: 1;
    transform: translateX(0);
}

.animate-from-right {
    opacity: 1;
    transform: translateX(0);
}

/* Terminal Animation */
.terminal {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    border: 1px solid var(--color-border);
    position: relative;
}

.terminal::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    width: 80%;
    height: 20px;
    background: radial-gradient(circle at center, rgba(0, 197, 142, 0.3) 0%, rgba(0, 197, 142, 0) 70%);
    filter: blur(10px);
}

.terminal-header {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.terminal-button:first-child {
    background-color: #ff5f56;
}

.terminal-button:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-button:nth-child(3) {
    background-color: #27c93f;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.terminal-line {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.prompt {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

.command {
    color: var(--color-text);
}

.response {
    color: var(--color-text-muted);
}

/* Features Section */
#features {
    padding: 6rem 0;
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

#features::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0.5;
    pointer-events: none;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    background-color: rgba(255, 255, 255, 0.05);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* How It Works Section */
#how-it-works {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.workflow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.workflow-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.workflow-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-glow);
    color: white;
}

.workflow-connector {
    flex: 0.5;
    height: 2px;
    background: var(--gradient-primary);
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.connector-dots {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

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

.dot:nth-child(2) {
    animation-delay: 0.5s;
}

.dot:nth-child(3) {
    animation-delay: 1s;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Demo Section */
#demo {
    padding: 6rem 0;
    background-color: var(--color-bg);
    position: relative;
    overflow-x: hidden;
}

#demo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0.3;
    pointer-events: none;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.dashboard-preview, .sdk-demo {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.dashboard-image {
    flex: 1;
}

.dashboard-mockup {
    height: 100%;
    max-width: 100%;
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    transform: perspective(1000px) rotateX(2deg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateX(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 197, 142, 0.15);
}

.mockup-header {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.mockup-title {
    padding-left: 10px;
    font-weight: 600;
}

.mockup-content {
    display: flex;
    flex: 1;
}

.mockup-sidebar {
    width: 150px;
    background-color: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--color-border);
    padding: 1rem 0;
}

.sidebar-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-item.active {
    background-color: rgba(0, 197, 142, 0.1);
    border-left: 3px solid var(--color-primary);
    color: var(--color-primary);
}

.mockup-main {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.section-header {
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.secret-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.secret-item {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.secret-item:hover {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.05);
}

.secret-name {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    word-break: break-all;
}

.secret-value {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    word-break: break-all;
}

.code-snippet {
    flex: 1;
    max-width: 100%;
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    border: 1px solid var(--color-border);
    position: relative;
    transform: perspective(1000px) rotateX(-2deg);
    transition: var(--transition);
}

.code-snippet:hover {
    transform: perspective(1000px) rotateX(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 197, 142, 0.15);
}

.code-header {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    position: relative;
}

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

/* Code Snippet Highlighting */
.code-snippet pre {
    background-color: var(--color-code-bg);
    transition: background-color 0.3s ease;
}

.code-snippet code {
    color: var(--color-code-text);
}

.code-comment {
    color: var(--color-code-comment);
}

.code-keyword {
    color: var(--color-code-keyword);
    font-weight: 500;
}

.code-function {
    color: var(--color-code-function);
}

.code-string {
    color: var(--color-code-string);
}

.typing-cursor {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2px;
    height: 16px;
    background-color: var(--color-primary);
    animation: blink 1s infinite;
}

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

.code-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Docs Preview Callout */
#docs-preview {
    padding: 3rem 0;
    background-color: var(--color-bg-alt);
}

.docs-callout {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.docs-callout p {
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0;
}

.docs-callout .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
}

.docs-callout .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Integrations Section */
#integrations {
    padding: 6rem 0;
    background-color: var(--color-bg-alt);
}

.integration-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.logo-item {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: var(--transition);
    padding: 1rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.logo-item:hover {
    color: var(--color-text);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.testimonial {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

blockquote {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1rem;
}

cite {
    color: var(--color-text-muted);
    font-style: normal;
}

/* Pricing Section */
#pricing {
    padding: 6rem 0;
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

#pricing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0.3;
    pointer-events: none;
}

.pricing-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    font-size: 1.25rem;
}

.cta-center {
    text-align: center;
}

/* Social Proof Section */
#social-proof {
    padding: 4rem 0;
    background-color: var(--color-bg);
}

.mini-tagline {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.mini-tagline h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.avatar-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg-alt);
    border: 2px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.avatar:nth-child(1) { background-color: #4ADE80; }
.avatar:nth-child(2) { background-color: #14B8A6; }
.avatar:nth-child(3) { background-color: #0EA5E9; }
.avatar:nth-child(4) { background-color: #8B5CF6; }
.avatar:nth-child(5) { background-color: #EC4899; }

.avatar-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg-alt);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-text-muted);
}

/* Footer */
footer {
    background-color: var(--color-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section a {
    color: var(--color-text-muted);
    transition: var(--transition);
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    color: var(--color-text-muted);
}

.copyright {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.easter-egg {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

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

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    #hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .demo-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }
    
        .dashboard-mockup, .code-snippet {
            transform: none;
        }
    
    .workflow {
        flex-direction: column;
        gap: 3rem;
    }
    
    .workflow-connector {
        width: 2px;
        height: 50px;
        margin: 0 auto;
    }
    
    .docs-callout {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .mini-tagline h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    nav {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
        pre {
            padding: 1rem;
        }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .avatar {
        width: 30px;
        height: 30px;
    }
    
    .avatar-more {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}

/* Mobile menu styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
    }
    
    .menu-bar {
        width: 100%;
        height: 2px;
        background-color: var(--color-text);
        transition: var(--transition);
    }
    
    .mobile-menu-btn.active .menu-bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .menu-bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .menu-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        border-bottom: none;
        padding: 0;
    }
    
    nav.mobile-nav-active {
        display: block;
    }

    nav {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem 0;
    }
}

/* Waitlist Note - Kept in main CSS as it's used outside the modal */
.waitlist-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Modal styles have been moved to modal-styles.css */

.typing-text {
    display: inline-block;
}


/* Base nav layout */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

/* Hide hamburger on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 25px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-text);
  transition: all 0.3s ease;
}

/* Hamburger active (turn into X) */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Mobile nav menu */
@media (max-width: 768px) {
  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    background: var(--color-bg-alt);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5rem 2rem;
    gap: 2rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 2000; /* higher than overlay */
  }

  nav ul.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul li a {
    color: var(--color-text);
    font-size: 1.1rem;
    text-decoration: none;
  }

  nav ul li a:hover {
    color: #00ff99;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 2100; /* above overlay */
  }

  /* Overlay */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1500; /* behind nav and button */
    transition: opacity 0.3s ease;
    opacity: 1;
    pointer-events: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  .theme-toggle {
    margin-top: auto;
  }
}


/* Problem Solution Section */
#problem-solution {
    padding: 6rem 0;
    background-color: var(--color-bg-alt);
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.problem-card,
.solution-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition-slow);
}

.problem-card:hover,
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-card h3,
.solution-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.problem-card .icon {
    font-size: 1.5rem;
}

.solution-card {
    border-color: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}


.solution-card .icon {
    font-size: 1.5rem;
}

.problem-card ul,
.solution-card ul {
    list-style: none;
    padding-left: 0;
}

.problem-card li,
.solution-card li {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.problem-card li strong,
.solution-card li strong {
    color: var(--color-text);
    font-weight: 600;
}

@media (max-width: 992px) {
    .problem-solution-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Legal Content Pages */
.legal-content {
    padding: 80px 0;
    margin-top: 80px; /* Push content below fixed header */
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
}

.legal-content p,
.legal-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-content ul {
    padding-left: 20px;
}

.heroicon {
    width: 1.25em;
    height: 1.25em;
    display: inline-block;
    vertical-align: middle;
}

.glowing-heart {
    animation: glow 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 0px #ff6b6b, 0 0 5px #ff6b6b, 0 0 10px #ff6b6b;
    }
    50% {
        text-shadow: 0 0 5px #ff6b6b, 0 0 5px #ff6b6b, 0 0 15px #ff6b6b, 0 0 15px #ff8e53;
    }
}

/* Contact Page Styles */
#contact-us .container {
    max-width: 1100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 0 1rem;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    grid-row: 1 / span 3;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.email-icon {
    background: linear-gradient(45deg, #2dd4bf, #34d399);
}

.linkedin-icon {
    background: linear-gradient(45deg, #0e76a8, #00a0dc);
}

.instagram-icon {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.contact-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: 600;
}

.contact-title {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-detail {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.arrow-link {
    grid-column: 3;
    grid-row: 1 / span 3;
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

.cta-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin: 0;
}

.founder-card {
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.founder-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.founder-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.founder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.founder-details h3 {
    margin: 0;
    font-size: 1.5rem;
}

.founder-role {
    margin: 0;
    color: var(--color-primary);
    font-weight: 500;
}

.founder-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.read-full-story {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-primary);
    font-weight: 600;
}

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