/* Arkalogy Website Styles */

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

:root {
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-tertiary: #888;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #0f0f0f;
    --border: #e5e5e5;
    --accent: #2563eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    border-bottom-color: var(--border);
}

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

.logo {
    display: flex;
    align-items: baseline;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-icon {
    height: 0.9em;
    width: auto;
    margin-right: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-nav {
    background: var(--text-primary);
    color: white !important;
}

.btn-nav:hover {
    background: #333;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    padding: 1rem 2rem;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    padding: 1rem 2rem;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    padding: 0 0.1em;
    border-radius: 4px;
    background: linear-gradient(90deg, #fef9c3 0%, #fef9c3 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    animation: marker-fill 1.5s ease-out 0.5s forwards;
}

@keyframes marker-fill {
    0% { background-size: 0% 100%; }
    100% { background-size: 100% 100%; }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Sections */
.section {
    padding: 7rem 0;
}

.section-dark {
    background: var(--bg-dark);
    color: white;
}

.section-dark .section-label {
    color: var(--accent);
}

.section-dark h2 {
    color: white;
}

.section-dark p {
    color: #aaa;
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.product-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.product-coming {
    opacity: 0.6;
}

.product-coming:hover {
    transform: none;
    box-shadow: none;
}

.product-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: contain;
}

.product-icon-text {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #888;
}

.product-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

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

.product-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.section-alt {
    background: var(--bg-secondary);
}

/* About */
.section-about {
    background: var(--bg-secondary);
}

.section-about .about-content {
    max-width: 650px;
}

.section-about h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-lead {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-lead em {
    font-style: normal;
    font-weight: 500;
    color: var(--text-primary);
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Contact */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    margin-bottom: 1rem;
}

.contact-content > p {
    margin-bottom: 2rem;
}

.contact-email {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.contact-email:hover {
    border-color: white;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #888;
    padding: 0;
}

.footer-top {
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid #222;
}

.footer-cta h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.footer-email {
    font-size: 1.25rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px solid #444;
    padding-bottom: 4px;
}

.footer-email:hover {
    color: white;
    border-color: white;
}

.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.footer-brand p {
    color: #555;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.footer-tagline {
    color: #444;
    font-size: 0.85rem;
}

/* Page Hero (for subpages) */
.page-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.contact-card .address {
    line-height: 1.8;
}

.contact-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Legal Pages */
.page {
    max-width: 700px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.page-header {
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .updated {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.page-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
}

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.page-content ul {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

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

/* Legal Content (Privacy, Terms) */
.legal-content {
    max-width: 700px;
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

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

.page-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .section {
        padding: 5rem 0;
    }
}
