/* ============================================
   WOODCRAFT — Landing Page & Legal Documents
   Theme: Graphite (from Woodcraft app)
   ============================================ */

/* --- Custom Properties --- */
:root {
    --bg-deep: #0F0F10;
    --bg-primary: #1C1C1E;
    --bg-elevated: #2C2C2E;
    --bg-row: #3A3A3C;
    --border: #48484A;
    --border-subtle: #38383A;
    --text-secondary: #8E8E93;
    --text-primary: #FFFFFF;
    --accent-1: #FFCC00;
    --accent-2: #00D2E0;
    --accent-3: #DB34F2;
    --accent-4: #32CD32;
    --accent-glow-1: rgba(255, 204, 0, 0.06);
    --accent-glow-2: rgba(0, 210, 224, 0.06);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --radius: 12px;
    --transition: 0.3s ease;
}

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

/* --- Base --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-deep);
    background-image:
        linear-gradient(rgba(72, 72, 74, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(72, 72, 74, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

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

a:hover {
    color: var(--accent-2);
}

/* --- Accent Bar --- */
.accent-bar {
    height: 3px;
    background: linear-gradient(90deg,
        var(--accent-1),
        var(--accent-2),
        var(--accent-3),
        var(--accent-4)
    );
    position: sticky;
    top: 0;
    z-index: 100;
}

/* --- Site Header --- */
.site-header {
    padding: 2rem 0;
}

.logo {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* ============================================
   Viewport Panel Component
   ============================================ */
.viewport-panel {
    position: relative;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
    transition: border-color 0.8s ease, box-shadow 0.8s ease;
}

.viewport-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-elevated);
    border-radius: 8px;
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    letter-spacing: 0.02em;
}

.viewport-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
    flex-shrink: 0;
}

.viewport-dot.dot-cyan { background: var(--accent-2); }
.viewport-dot.dot-magenta { background: var(--accent-3); }
.viewport-dot.dot-lime { background: var(--accent-4); }

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 4rem 0 5rem;
}

.hero-panel {
    max-width: 640px;
    margin: 0 auto;
    padding: 5rem 3rem 4rem;
    border-color: var(--border);
    animation: activateViewport 1.2s ease 0.3s forwards;
}

@keyframes activateViewport {
    from {
        border-color: var(--border);
        box-shadow: 0 0 0 rgba(255, 204, 0, 0);
    }
    to {
        border-color: var(--accent-1);
        box-shadow: 0 0 40px var(--accent-glow-1);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.hero-icon {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.hero-icon img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: contain;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    line-height: 1;
}

.hero-tagline {
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--accent-1);
}

/* ============================================
   Section Divider
   ============================================ */
.section-divider {
    display: flex;
    align-items: center;
    max-width: 200px;
    margin: 0 auto 3rem;
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dot-color, var(--border));
    flex-shrink: 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============================================
   Announcement Section
   ============================================ */
.announcement {
    padding: 0 0 5rem;
}

.announcement-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
}

.announcement-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.announcement-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Corner frame marks */
.corner-frame {
    position: relative;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.corner-tl { top: 0; left: 0; border-top: 2px solid var(--accent-1); border-left: 2px solid var(--accent-1); }
.corner-tr { top: 0; right: 0; border-top: 2px solid var(--accent-2); border-right: 2px solid var(--accent-2); }
.corner-bl { bottom: 0; left: 0; border-bottom: 2px solid var(--accent-3); border-left: 2px solid var(--accent-3); }
.corner-br { bottom: 0; right: 0; border-bottom: 2px solid var(--accent-4); border-right: 2px solid var(--accent-4); }

/* ============================================
   Pillars Section
   ============================================ */
.pillars {
    padding: 0 0 5rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pillar {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-primary);
}

.pillar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: 0.75rem;
}

.pillar p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   Signup Section
   ============================================ */
.signup {
    padding: 0 0 6rem;
}

.signup-panel {
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 3rem 3rem;
    text-align: center;
    border-color: var(--border);
}

.signup-panel.active {
    border-color: var(--accent-2);
    box-shadow: 0 0 40px var(--accent-glow-2);
}

.signup-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.signup-content > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Form embed container — styles sender.net form elements */
.form-embed {
    max-width: 400px;
    margin: 0 auto;
}

.form-embed input[type="email"],
.form-embed input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition);
    outline: none;
}

.form-embed input:focus {
    border-color: var(--accent-2);
}

.form-embed button,
.form-embed input[type="submit"] {
    width: 100%;
    padding: 0.875rem 2rem;
    background: var(--accent-1);
    color: var(--bg-deep);
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform 0.15s ease;
    margin-top: 0.75rem;
}

.form-embed button:hover,
.form-embed input[type="submit"]:hover {
    background: #FFD633;
    transform: translateY(-1px);
}

.placeholder-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 2rem;
    border: 1px dashed var(--border);
    border-radius: 8px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-subtle);
}

/* ============================================
   Legal Page Styles
   ============================================ */
.legal-page {
    padding: 2rem 0 4rem;
}

.legal-back {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 3rem;
    transition: color var(--transition);
}

.legal-back:hover {
    color: var(--accent-1);
}

.legal-back span {
    margin-right: 0.5rem;
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.legal-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-1);
    padding-top: 0.5rem;
}

.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

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

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

.legal-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content .email-placeholder {
    color: var(--accent-1);
    font-style: italic;
}

/* ============================================
   Animations
   ============================================ */

/* Hero stagger fade-up */
.anim-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.anim-delay-1 { animation-delay: 0.6s; }
.anim-delay-2 { animation-delay: 0.9s; }
.anim-delay-3 { animation-delay: 1.2s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

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

    .hero-panel {
        padding: 4rem 1.5rem 3rem;
        max-width: 100%;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero-icon {
        width: 96px;
        height: 96px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .announcement-content h2 {
        font-size: 1.6rem;
    }

    .announcement-content {
        padding: 2rem 1rem;
    }

    .signup-panel {
        padding: 3rem 1.5rem 2.5rem;
        max-width: 100%;
    }

    .signup-content h2 {
        font-size: 1.5rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .corner {
        width: 16px;
        height: 16px;
    }

    .legal-content h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-panel {
        padding: 3.5rem 1.25rem 2.5rem;
    }

    .signup-panel {
        padding: 3rem 1.25rem 2rem;
    }

    .viewport-label {
        font-size: 0.7rem;
        padding: 4px 10px;
        top: 10px;
        left: 10px;
    }
}
