/* Good Boy Landing — Matches App Design */

:root {
    --emerald: #02AA81;
    --emerald-dark: #028A69;
    --emerald-light: #E6F7F2;
    --violet: #785EFF;
    --amber: #E4A94D;
    --coral: #D4706A;
    --blue: #5BA4CF;
    --bg: #1F1C21;
    --bg-secondary: #2C2930;
    --bg-tertiary: #3D3A3F;
    --card: #2C2930;
    --text: #FFFFFF;
    --text-secondary: #A8A3AE;
    --text-muted: #706B77;
    --border: #3D3A3F;
    --radius: 12px;
    --radius-lg: 16px;
}

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

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

/* Noise texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 100px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1000px) {
    .hero {
        flex-direction: column;
        gap: 48px;
        padding: 60px 24px 80px;
        min-height: auto;
    }
}

/* Content */
.hero-content {
    max-width: 440px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(2, 170, 129, 0.3);
}

.headline {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    color: var(--text);
}

@media (max-width: 600px) {
    .headline { font-size: 36px; }
}

.subheadline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.65;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 40px;
}

.feature {
    font-size: 15px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--text);
    color: var(--bg);
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(2, 170, 129, 0.2);
}

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

.btn-small { font-size: 11px; opacity: 0.7; }
.btn-large { font-size: 17px; font-weight: 600; }

/* Phone */
.phone-container {
    perspective: 1200px;
    position: relative;
}

/* Glow behind phone */
.phone-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(2, 170, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.phone {
    width: 300px;
    height: 620px;
    background: linear-gradient(145deg, #3D3A3F 0%, #2C2930 100%);
    border-radius: 48px;
    padding: 12px;
    position: relative;
    box-shadow:
        0 60px 120px rgba(2, 170, 129, 0.1),
        0 30px 60px rgba(0,0,0,0.25),
        inset 0 1px 1px rgba(255,255,255,0.06);
    animation: phoneFloat 5s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: rotateY(-4deg) rotateX(2deg) translateY(0); }
    50% { transform: rotateY(2deg) rotateX(-1deg) translateY(-8px); }
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 32px;
    background: #2C2930;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

/* Screens */
.screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screen.active {
    opacity: 1;
}

.screen-content {
    padding: 56px 18px 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Screen 1: Today */
.today-header {
    margin-bottom: 18px;
}

.today-greeting {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.today-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-top: 2px;
}

.dog-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dog-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.dog-avatar svg { width: 22px; height: 22px; fill: white; }

.dog-info { flex: 1; }
.dog-name { font-size: 14px; font-weight: 600; color: var(--text); }
.dog-breed { font-size: 11px; color: var(--text-muted); }

.streak-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--amber);
    background: rgba(228,169,77,0.15);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lesson-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    margin-bottom: 14px;
}

.card-badge {
    font-size: 9px;
    font-weight: 700;
    color: var(--emerald);
    letter-spacing: 1px;
}

.card-unit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--emerald);
    background: rgba(2,170,129,0.12);
    padding: 5px 10px;
    border-radius: 20px;
    margin: 8px 0;
}

.card-unit svg { width: 12px; height: 12px; fill: var(--emerald); }

.card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.card-btn {
    width: 100%;
    padding: 12px;
    background: var(--emerald);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.stats-row {
    display: flex;
    background: var(--card);
    border-radius: var(--radius);
    padding: 12px;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-icon { font-size: 12px; }
.stat-icon svg { width: 14px; height: 14px; }
.stat-num { font-size: 16px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 10px; color: var(--text-muted); }

/* Screen 2: Training Session */
.session-content {
    padding: 48px 14px 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.session-step {
    font-size: 10px;
    font-weight: 700;
    color: var(--emerald);
    background: rgba(2,170,129,0.12);
    padding: 5px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.session-timer {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.session-timer svg { width: 12px; height: 12px; fill: var(--text-muted); }

.session-progress {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}

.session-progress-fill {
    height: 100%;
    width: 40%;
    background: var(--emerald);
    border-radius: 2px;
}

.session-card {
    flex: 1;
    background: var(--card);
    border-radius: 20px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    margin-bottom: 10px;
}

.session-skill {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.session-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.session-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.session-demo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 14px;
    padding: 16px;
}

.demo-rep {
    font-size: 48px;
    font-weight: 800;
    color: var(--emerald);
    line-height: 1;
}

.demo-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.session-buttons {
    display: flex;
    gap: 8px;
}

.session-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.session-btn.skip { background: var(--bg-tertiary); color: var(--text-secondary); }
.session-btn.done { background: var(--emerald); color: white; }

/* Screen 3: Progress */
.progress-content {
    padding: 48px 14px 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.progress-header {
    margin-bottom: 20px;
}

.progress-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.progress-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.progress-streak-card {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.streak-fire { font-size: 28px; }
.streak-fire svg { width: 28px; height: 28px; fill: white; }
.streak-num { font-size: 28px; font-weight: 800; color: white; }
.streak-text { font-size: 12px; color: rgba(255,255,255,0.8); }

.skills-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.skill-chip {
    background: var(--card);
    border-radius: var(--radius);
    padding: 12px 14px;
    flex: 1;
    min-width: calc(50% - 4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.skill-name {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.skill-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 2px;
}

.skill-bar-fill.high { background: var(--emerald); width: 85%; }
.skill-bar-fill.mid { background: var(--amber); width: 52%; }
.skill-bar-fill.low { background: var(--coral); width: 28%; }
.skill-bar-fill.new { background: var(--blue); width: 15%; }

.skill-pct {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

/* Screen 4: Success */
.screen-success .screen-content {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-check {
    width: 64px;
    height: 64px;
    background: var(--emerald);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-check svg { width: 32px; height: 32px; fill: white; }

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.success-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.success-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.success-stat { text-align: center; }
.ss-num { display: block; font-size: 24px; font-weight: 700; color: var(--text); }
.ss-label { font-size: 11px; color: var(--text-muted); }

.success-btn {
    padding: 14px 56px;
    background: var(--emerald);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 16px;
    color: var(--text-muted);
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1000px) {
    .hero-content { text-align: center; }
    .features { justify-content: center; }
    .download-btn { margin: 0 auto; }

    .phone {
        width: 260px;
        height: 540px;
        border-radius: 42px;
    }

    .phone-screen { border-radius: 34px; }
    .phone-notch { width: 90px; height: 28px; }
}

@media (max-width: 600px) {
    .hero { gap: 36px; padding: 48px 20px 60px; }
    .headline { font-size: 32px; }
    .subheadline { font-size: 16px; margin-bottom: 24px; }
    .subheadline br { display: none; }

    .phone {
        width: 220px;
        height: 460px;
        border-radius: 36px;
        padding: 10px;
    }

    .phone-screen { border-radius: 28px; }
    .phone-notch { width: 80px; height: 24px; top: 10px; }
    .screen-content { padding: 48px 12px 12px; }

    .today-title { font-size: 22px; }
    .dog-card, .lesson-card { padding: 12px; }
    .card-title { font-size: 15px; }
    .session-title { font-size: 18px; }
    .demo-rep { font-size: 36px; }

    .footer { padding: 24px 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .phone, .success-check { animation: none; }
    .screen { transition: none; }
}
