:root {
    --primary: #000000;
    --primary-dark: #1a1a1a;
    --text: #1d1d1f;
    --text-light: #86868b;
    --background: #ffffff;
    --background-alt: #f5f5f7;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: var(--background);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--primary);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--primary);
}

p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* Apple-style overline text */
.overline {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 100;
    padding: var(--spacing-sm) 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
}

/* Buttons */
.button-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 980px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: calc(var(--spacing-xl) * 2.5) 0 var(--spacing-xl);
    position: relative;
    overflow: hidden;
    text-align: center;
    background: var(--background);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
    color: var(--text-light);
}

.gradient-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.03) 0%,
        rgba(0, 0, 0, 0.02) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    transform: rotate(-10deg);
    z-index: -1;
}

/* Features Section */
.features {
    padding: var(--spacing-xl) 0;
    background: var(--background-alt);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    border-radius: 12px;
    background: var(--primary);
    opacity: 0.9;
}

/* Feature Icons - Update to monochromatic scheme */
.smart-tracking,
.quick-add,
.shelf-scan,
.reflections {
    background: var(--primary);
}

/* CTA Section */
.cta {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: var(--background);
}

/* Forms */
.waitlist-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto;
    padding: var(--spacing-sm);
}

.waitlist-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 980px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.waitlist-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.waitlist-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 980px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.waitlist-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.form-message {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
}

.form-message.success {
    color: #059669;
}

.form-message.error {
    color: #DC2626;
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    background: var(--background-alt);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

footer p {
    margin: 0;
    font-size: 0.875rem;
}

/* Animation Classes */
.reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-loaded .reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}

.js-loaded .reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .waitlist-form {
        flex-direction: column;
    }

    footer .container {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}