/* ===========================
   Weldev.net — Styles
   =========================== */

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

:root {
    --color-bg: #f5f5f4;
    --color-bg-alt: #eceae8;
    --color-bg-card: #fafaf9;
    --color-text: #1c1917;
    --color-text-secondary: #57534e;
    --color-text-muted: #a8a29e;
    --color-primary: #0d9488;
    --color-primary-dark: #0f766e;
    --color-primary-light: rgba(13, 148, 136, 0.12);
    --color-border: #d6d3d1;
    --color-card-shadow: rgba(28, 25, 23, 0.07);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 1100px;
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* --- Skip Link (ADA) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* --- Focus Styles (ADA) --- */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
}

/* --- Header / Nav --- */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(245, 245, 244, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(214, 211, 209, 0.6);
    z-index: 100;
}

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

.site-logo {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-logo:hover {
    color: var(--color-text);
}

.logo-dot {
    color: var(--color-primary);
}

.site-nav {
    display: flex;
    gap: 32px;
    list-style: none;
}

.site-nav a {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    width: 100%;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--color-primary);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

/* --- Hero --- */
.hero {
    position: relative;
    text-align: center;
    padding: 120px 0 100px;
    background: linear-gradient(160deg, #e7e5e4 0%, #eceae8 40%, #e2e0de 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(87, 83, 78, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 16px;
    color: var(--color-text);
}

.hero h1 .logo-dot {
    font-size: 1.1em;
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero .intro {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 100px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.hero-cta:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.hero-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.hero-cta:hover svg {
    transform: translateY(2px);
}

/* --- Section Headings --- */
.section-heading {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    background: var(--color-primary-light);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-heading h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    max-width: 500px;
    margin: 0 auto;
}

/* --- Apps --- */
.apps {
    background: var(--color-bg);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.app-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow:
        0 1px 2px var(--color-card-shadow),
        0 4px 16px var(--color-card-shadow);
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #2dd4bf);
    opacity: 0;
    transition: opacity 0.3s;
}

.app-card:hover {
    box-shadow:
        0 2px 4px var(--color-card-shadow),
        0 8px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}

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

.app-card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-card-title {
    padding-top: 6px;
}

.app-card-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.app-card-title .app-tagline {
    color: var(--color-primary);
    font-size: 0.9375rem;
    font-weight: 500;
}

.app-card .app-description {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* --- App Link Buttons --- */
.app-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Mac App Store badge — dark capsule with Apple logo */
.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}

.btn-appstore:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-1px);
}

.btn-appstore svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-appstore-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.btn-appstore-text .btn-appstore-label {
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.btn-appstore-text .btn-appstore-title {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Website link — teal with arrow */
.btn-website {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-primary);
    background: transparent;
    transition: background 0.2s, transform 0.15s, color 0.2s;
}

.btn-website:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-website svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.btn-website:hover svg {
    transform: translateX(3px);
}

/* --- About --- */
.about {
    background: var(--color-bg-alt);
    position: relative;
}

.about-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* --- Contact --- */
.contact {
    background: var(--color-bg);
}

.contact-wrapper {
    max-width: 560px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow:
        0 1px 2px var(--color-card-shadow),
        0 4px 16px var(--color-card-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    background: var(--color-bg-card);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
    outline: none;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* Honeypot — hidden from real users */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 13px 32px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

.form-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.form-submit svg {
    width: 18px;
    height: 18px;
}

/* Alert messages */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    text-align: center;
}

.site-footer p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 10px;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

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

    .site-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(245, 245, 244, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a::after {
        display: none;
    }

    .hero {
        padding: 80px 0 64px;
    }

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

    .hero .tagline {
        font-size: 1.25rem;
    }

    section {
        padding: 64px 0;
    }

    .section-heading h2 {
        font-size: 1.875rem;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 16px;
    }

    .app-card {
        padding: 24px;
    }

    .app-card-header {
        flex-direction: column;
        gap: 12px;
    }

    .app-card-title {
        padding-top: 0;
    }

    .app-links {
        flex-direction: column;
    }

    .btn-appstore,
    .btn-website {
        justify-content: center;
    }

    .contact-wrapper {
        padding: 20px;
    }
}
