/* ============================================================
   PawWise - Premium UI
   Design: Soft Structuralism + Editorial warmth
   Fonts: Plus Jakarta Sans (body) + Fraunces (display)
   Motion: Spring physics via cubic-bezier
   ============================================================ */

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

:root {
    --bg: #FDFCFA;
    --surface: #FFFFFF;
    --surface-raised: #FFFFFF;
    --surface-inset: #F7F5F2;
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.1);
    --text-primary: #1A1714;
    --text-secondary: #6B6560;
    --text-muted: #A09A94;
    --accent: #2D5BFF;
    --accent-soft: #EEF2FF;
    --green: #16A34A;
    --green-bg: #DCFCE7;
    --yellow: #CA8A04;
    --yellow-bg: #FEF9C3;
    --orange: #EA580C;
    --orange-bg: #FFF7ED;
    --red: #DC2626;
    --red-bg: #FEF2F2;
    --purple: #7C3AED;
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-ambient: 0 1px 2px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-lifted: 0 2px 4px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.08);
    --shadow-floating: 0 4px 8px rgba(0,0,0,0.04), 0 16px 64px rgba(0,0,0,0.1);
    --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* === APP LAYOUT === */
.app {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* === FLOATING NAV === */
.nav {
    position: sticky;
    top: 1rem;
    z-index: 100;
    padding: 0 0.5rem;
    margin-bottom: 2rem;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: var(--shadow-ambient);
    transition: box-shadow 0.4s var(--ease-smooth);
}

.nav-inner:hover {
    box-shadow: var(--shadow-lifted);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-paw { font-size: 1.4rem; }

.nav-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.nav-key-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: var(--surface-inset);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
    color: var(--text-secondary);
}

.nav-key-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.nav-key-label { font-size: 0.75rem; }

/* === HERO === */
.hero {
    padding: 4rem 0 5rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem 0.35rem 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    background: var(--text-primary);
    color: white;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-cta:active {
    transform: scale(0.98);
}

.cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    font-size: 0.85rem;
    transition: transform 0.3s var(--ease-spring);
}

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

/* === HERO IMAGE === */
.hero-image {
    margin-top: 2.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lifted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--ease-out-expo);
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* === MODES SECTION === */
.modes-section {
    margin-bottom: 3rem;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.mode-card {
    position: relative;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: left;
    transition: all 0.35s var(--ease-out-expo);
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-soft), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.mode-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lifted);
    border-color: var(--border-strong);
}

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

.mode-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.1), var(--shadow-lifted);
}

.mode-card.active::before { opacity: 1; }

.mode-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0.6rem;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.mode-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.mode-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    position: relative;
}

.mode-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    position: relative;
}

/* === WORKSPACE === */
.workspace {
    margin-bottom: 4rem;
}

.ws-header {
    margin-bottom: 1.5rem;
}

.ws-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.ws-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === UPLOAD ZONE === */
.upload-zone {
    position: relative;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
    background: var(--surface);
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    transform: scale(1.005);
    box-shadow: var(--shadow-lifted);
}

.upload-zone:hover::before,
.upload-zone.dragover::before {
    opacity: 1;
}

.upload-inner { position: relative; }

.upload-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface-inset);
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: all 0.3s var(--ease-spring);
}

.upload-zone:hover .upload-icon-wrap {
    background: var(--accent-soft);
    color: var(--accent);
    transform: translateY(-2px);
}

.upload-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.upload-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* === PREVIEW === */
.preview {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-ambient);
    margin-bottom: 1rem;
}

.preview img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.preview-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.preview-remove:hover {
    background: rgba(220, 38, 38, 0.8);
    transform: scale(1.1);
}

/* === TEXT INPUT === */
.text-area {
    margin-top: 0.75rem;
}

.text-area textarea {
    width: 100%;
    min-height: 90px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.92rem;
    resize: vertical;
    background: var(--surface);
    transition: all 0.2s;
    line-height: 1.6;
}

.text-area textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(45, 91, 255, 0.08);
}

.text-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-style: italic;
}

/* === PROFILE PANEL === */
.profile-panel {
    margin-top: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow: hidden;
}

.profile-panel summary {
    padding: 0.8rem 1.1rem;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.profile-panel summary:hover { background: var(--surface-inset); }

.profile-panel[open] summary { border-bottom: 1px solid var(--border); }

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
}

.profile-field label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.profile-field input {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    font-family: var(--font);
    transition: border-color 0.2s;
}

.profile-field input:focus {
    outline: none;
    border-color: var(--accent);
}

/* === ANALYZE BUTTON === */
.btn-analyze {
    position: relative;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s var(--ease-spring);
}

.btn-analyze:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-analyze:active {
    transform: scale(0.98);
}

.btn-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* === LOADING === */
.ws-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-ring {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.ring-segment {
    width: 100%;
    height: 100%;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    transition: opacity 0.4s ease;
}

.loading-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: opacity 0.4s ease;
}

.loading-progress {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    margin: 1.5rem auto 0;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    animation: progress-pulse 2.5s ease-in-out infinite;
    width: 40%;
}

@keyframes progress-pulse {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(150%); }
    100% { transform: translateX(-100%); }
}

/* === RESULTS === */
.ws-results {
    animation: slideUp 0.5s var(--ease-out-expo);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Urgency */
.urgency {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.urgency.green { background: var(--green-bg); color: var(--green); }
.urgency.yellow { background: var(--yellow-bg); color: var(--yellow); }
.urgency.orange { background: var(--orange-bg); color: var(--orange); }
.urgency.red { background: var(--red-bg); color: var(--red); }

.urgency-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Voice Card */
.voice-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: var(--text-primary);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.voice-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease-spring);
}

.voice-play:hover { transform: scale(1.08); }
.voice-play:active { transform: scale(0.95); }

.voice-wave {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}

.voice-progress {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.voice-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

/* Report */
.report {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-ambient);
}

.report-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.report-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.report-section h4 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.report-section p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.report-section ul {
    list-style: none;
    padding: 0;
}

.report-section li {
    font-size: 0.88rem;
    padding: 0.35rem 0 0.35rem 1.4rem;
    position: relative;
    line-height: 1.6;
}

.report-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* === COURT === */
.court {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.court-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--surface-inset);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.court-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.court-charge {
    color: var(--red);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.court-play {
    width: 100%;
    padding: 0.7rem;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 1rem;
    font-family: var(--font);
    transition: all 0.2s;
}

.court-play:hover { opacity: 0.9; }

.court-transcript {
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.25rem;
    padding: 0.75rem;
    background: var(--surface-inset);
    border-radius: var(--radius-sm);
}

.court-line {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.court-line:last-child { border-bottom: none; }

.court-line .speaker {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 90px;
    flex-shrink: 0;
}

.court-line .dialog {
    font-size: 0.85rem;
    line-height: 1.5;
}

.court-verdict {
    padding: 1.5rem;
    background: var(--green-bg);
    border-radius: var(--radius-md);
}

.verdict-stamp {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    transform: rotate(-2deg);
    letter-spacing: -0.02em;
}

.verdict-reason {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.25rem;
}

.court-verdict.guilty { background: var(--red-bg); }
.court-verdict.guilty .verdict-stamp { color: var(--red); }

/* === ACTIONS === */
.result-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* === BUTTONS === */
.btn-primary {
    padding: 0.65rem 1.3rem;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s var(--ease-spring);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lifted); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
    flex: 1;
    padding: 0.65rem 1rem;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover { background: var(--surface-inset); border-color: var(--border-strong); }

/* === MODAL === */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-floating);
    animation: modalIn 0.3s var(--ease-out-expo);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.modal-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.modal-field {
    margin-bottom: 1rem;
}

.modal-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.modal-field .required { color: var(--red); font-weight: 500; font-size: 0.7rem; }
.modal-field .optional { color: var(--text-muted); font-weight: 400; font-size: 0.7rem; }

.modal-field input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-family: monospace;
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.modal-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.08);
}

.field-link {
    font-size: 0.72rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

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

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-actions .btn-ghost { flex: 0; }

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tech-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tech-badge.google { background: #EEF2FF; color: #3B5BDB; }
.tech-badge.eleven { background: #F3E8FF; color: #7C3AED; }

.footer-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.footer-text a { color: var(--accent); text-decoration: none; }
.footer-text a:hover { text-decoration: underline; }

.footer-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* === UTILITIES === */
.hidden { display: none !important; }

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s var(--ease-out-expo);
}

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

/* === RESPONSIVE === */
@media (max-width: 560px) {
    .modes-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .mode-card { padding: 1rem; }
    .mode-card h3 { font-size: 0.8rem; }
    .mode-card p { font-size: 0.7rem; }
    .hero { padding: 2.5rem 0 3rem; }
    .hero-stats { gap: 1.5rem; }
    .stat-num { font-size: 1.4rem; }
    .profile-grid { grid-template-columns: 1fr 1fr; }
    .nav { top: 0.5rem; }
}
