@font-face {
    font-family: 'OCR-A';
    src: url('fonts/ocr-a-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

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

:root {
    --bg-color: #faf8f4;
    --text-color: #2c2c2c;
    --text-muted: #6b6560;
    --accent: #8b6b5a;
    --accent-soft: rgba(139, 107, 90, 0.1);
    --card-bg: #f0ebe4;
    --border-color: #e5e0d8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    letter-spacing: 0.01em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

nav {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* Main Content */
main {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Hero */
.hero {
    padding: 7rem 0 2rem;
    max-width: 600px;
}

.hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

.hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

/* Section Headings */
section h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0;
    color: var(--text-color);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.about-section p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 650px;
}

/* Products Section */
.products-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.product-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 2.5rem;
}

.product-card:last-child {
    margin-bottom: 0;
}

.product-card.featured {
    flex-direction: column;
}

.product-card.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .product-card.two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-card.two-col .product-screenshot {
        order: -1;
    }
}

.product-card.featured .product-icon img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
}

.product-icon img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-screenshot {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-screenshot img {
    width: 240px;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.product-info h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0;
}

.product-info h3.hydrox-title {
    font-family: 'Allerta Stencil', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.product-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.product-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
}

/* Dark Product Card Variant */
.product-card.dark {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
}

.product-card.dark .hydrox-title {
    color: #ffffff;
}

.product-card.dark .product-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.product-card.dark .product-description {
    color: rgba(255, 255, 255, 0.6);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 1rem 0;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.feature-check {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.5;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s, opacity 0.2s;
    margin-top: 16px;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-btn svg {
    width: 24px;
    height: 24px;
}

.product-status.dark {
    background: rgba(0, 201, 166, 0.15);
    color: #00c9a6;
}

.notify-form.dark {
    max-width: 280px;
}

.notify-form.dark input[type="email"] {
    background: #2a2a2a;
    border-color: #3a3a3a;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.notify-form.dark input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.notify-form.dark input[type="email"]:focus {
    border-color: #00c9a6;
    box-shadow: 0 0 0 3px rgba(0, 201, 166, 0.2);
}

.notify-form.dark button {
    background: #00c9a6;
    color: #0D0D0D;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
}

.notify-form.dark button:hover {
    background: #00dbb5;
}

.app-store-link {
    display: inline-block;
    margin-top: 1.25rem;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.app-store-link:hover {
    opacity: 0.85;
}

.app-store-link:active {
    transform: scale(0.98);
}

.app-store-badge {
    height: 44px;
    width: auto;
}

.notify-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
    max-width: 360px;
}

.notify-form input[type="email"] {
    flex: 1;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.notify-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.notify-form button {
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #323232;
    color: #fffef2;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.1s ease;
}

.notify-form button:hover {
    background: #484848;
}

.notify-form button:active {
    transform: scale(0.98);
}

/* Founder Section */
.founder-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.founder-card {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.founder-image img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.headshot-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #8b3a27 100%);
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.founder-info h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    letter-spacing: 0;
}

.founder-title {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.founder-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

.founder-info strong {
    color: var(--text-color);
    font-weight: 500;
}

.founder-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    background: var(--card-bg);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.social-link:hover {
    color: var(--text-color);
    background: var(--border-color);
}

.social-link svg {
    flex-shrink: 0;
}

/* Portfolio Section */
.portfolio-section {
    padding: 5rem 0 6rem;
    border-top: 1px solid var(--border-color);
}

.portfolio-intro {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1.5rem;
}

.portfolio-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2/1;
    text-decoration: none;
    border-radius: 4px;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .overlay {
    opacity: 1;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-card .company-name {
    font-family: 'OCR-A', 'SF Mono', Monaco, monospace;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.portfolio-cta a {
    color: var(--accent);
    text-decoration: none;
}

.portfolio-cta a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #2c2c2c;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-line {
    font-family: 'OCR-A', 'SF Mono', Monaco, monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

.footer-line a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-line a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-company,
.footer-contact,
.footer-legal {
    font-family: 'OCR-A', 'SF Mono', Monaco, monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-company {
    margin-bottom: 0.75rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-legal {
    margin-bottom: 0;
    margin-top: 0.75rem;
}

/* Content Pages */
.content-page {
    padding: 4rem 0 5rem;
    max-width: 600px;
}

.content-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.content-page h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.content-page h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.content-page p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-page ul {
    color: var(--text-muted);
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.content-page li {
    margin-bottom: 0.4rem;
}

.content-page a {
    color: var(--accent);
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

.content-page a:visited {
    color: var(--accent);
}

.content-page .updated {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Mobile */
@media (max-width: 768px) {
    nav {
        padding: 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    main {
        padding: 0 1.25rem;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .founder-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .founder-image img,
    .headshot-placeholder {
        width: 100px;
        height: 100px;
    }

    .headshot-placeholder {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .notify-form {
        flex-direction: column;
        max-width: 100%;
    }

    .notify-form button {
        width: 100%;
    }

    .founder-links {
        gap: 0.75rem;
    }

    .social-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

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

    .portfolio-card .overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    }

    .portfolio-card .company-name {
        position: absolute;
        bottom: 0.75rem;
    }

    .product-card {
        padding: 1.5rem;
    }
}
