/* Apple Premium Reset & Base */
:root {
    --bg-color: #000000;
    --card-bg: #111111;
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --primary: #ffb84d;
    --primary-hover: #ff8f1f;
    --gradient-pro: linear-gradient(120deg, #ffd86b, #ffb13b, #ff7a18);
    --nav-bg: rgba(0, 0, 0, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --radius: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    min-height: 100vh;
    padding-bottom: 120px;
    -webkit-font-smoothing: antialiased;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Top Navigation (Apple Global Nav Style) */
.topbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 48px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 9999;
    font-size: 12px;
}

.title-group { display: flex; align-items: center; gap: 0.5rem; }
.title-group h1 { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; margin: 0; }
.header-links { display: flex; align-items: center; gap: 0.6rem; }
.header-links a { display: inline-flex; align-items: center; justify-content: center; }
.instagram-icon {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(0.95);
}

.language-select {
    min-height: 34px;
    border-radius: 999px;
    padding: 0.35rem 1.8rem 0.35rem 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    background-color: rgba(255, 255, 255, 0.05);
    background-size: 5px 5px, 5px 5px;
    background-position:
        calc(100% - 14px) calc(50% - 2px),
        calc(100% - 10px) calc(50% - 2px);
}
.eyebrow { display: none; } /* Hidden in topbar for minimalism */

/* Apple-style Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero p.eyebrow {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: none;
    letter-spacing: normal;
}

.hero h2 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0;
}

.text-gradient-pro {
    background: var(--gradient-pro);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero .lead {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-muted);
    font-weight: 500;
    max-width: 700px;
    margin-top: 1rem;
}

/* Layout Shell */
.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Premium Cards */
.grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 3rem;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.section-card:hover {
    transform: scale(1.01);
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.section-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blueprint-section {
    margin: 2rem 0 4rem;
}

.blueprint-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(32, 64, 160, 0.22), rgba(16, 16, 18, 0.92) 55%),
        radial-gradient(circle at top left, rgba(88, 134, 255, 0.26), transparent 36%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 420px;
}

.blueprint-copy {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.blueprint-copy h3 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 0;
}

.blueprint-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 36rem;
}

.blueprint-visual {
    position: relative;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.blueprint-grid {
    position: absolute;
    inset: 1.5rem;
    border-radius: calc(var(--radius) - 4px);
    background-image:
        linear-gradient(rgba(120, 160, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 160, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    border: 1px solid rgba(120, 160, 255, 0.12);
}

.blueprint-image {
    position: relative;
    width: min(320px, 72%);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.blueprint-badge {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 2;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 12, 20, 0.55);
    backdrop-filter: blur(16px);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.blueprint-gallery {
    position: relative;
    z-index: 1;
    width: min(360px, 88%);
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
}

.blueprint-thumb {
    width: 100%;
    height: 100%;
    min-height: 90px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.blueprint-thumb:first-child {
    grid-row: 1 / span 2;
}

/* Chips / Tags */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-main);
}

/* Stats / Info Lists */
.info-list { list-style: none; padding: 0; }
.info-list li {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.info-list li:last-child { border-bottom: none; }

.timeline-list div {
    margin-bottom: 1.5rem;
}
.timeline-list strong { 
    display: block; 
    font-size: 1.5rem; 
    color: var(--text-main); 
    margin-bottom: 0.25rem;
}
.timeline-list span { color: var(--text-muted); font-size: 1.125rem; }

/* Forms (Apple ID style inputs) */
.form-grid-block { display: flex; flex-direction: column; gap: 1.5rem; }
.field-block { display: flex; flex-direction: column; gap: 0.5rem; }
.field-block span { font-size: 14px; color: var(--text-muted); font-weight: 500; }

input, select, textarea {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(255, 255, 255, 0.03);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
        linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 3rem;
    cursor: pointer;
    min-height: 56px;
    font-weight: 500;
    color-scheme: dark;
}

select option {
    background: #111111;
    color: var(--text-main);
}

select:hover {
    border-color: rgba(255, 184, 77, 0.4);
}

select:focus {
    box-shadow: 0 0 0 4px rgba(255, 184, 77, 0.12);
}

.field-block select {
    background-color: rgba(255, 255, 255, 0.05);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.02);
}

input::placeholder, textarea::placeholder {
    color: rgba(245, 245, 247, 0.42);
}

textarea { resize: vertical; min-height: 120px; }

/* Buttons */
.primary-button {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: var(--transition);
}

.primary-button:hover {
    background: #e8e8ed;
    transform: scale(1.02);
}

.primary-button.is-accent {
    background: var(--gradient-pro);
    color: #111111;
}

.primary-button.is-accent:hover {
    background: linear-gradient(120deg, #ffe17a, #ffba43, #ff8b20);
    color: #111111;
}

.form-result,
.query-output,
.embed-card {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.form-result[hidden],
.query-output[hidden] {
    display: none;
}

.result-header,
.query-row,
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.result-key {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.result-key--emoji {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: 0.12em;
    word-break: break-word;
}

.result-meta,
.query-note {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.copy-button {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
    font: inherit;
    cursor: pointer;
}

.copy-button:hover {
    border-color: var(--primary);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-pill.accepted {
    background: rgba(255, 184, 77, 0.18);
    color: #ffd36c;
}

.status-pill.pending {
    background: rgba(255, 136, 64, 0.16);
    color: #ffb07a;
}

.status-reason {
    margin-top: 1rem;
    color: var(--text-muted);
}

.query-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.embed-frame {
    width: 100%;
    min-height: 980px;
    border: 0;
    border-radius: 18px;
    background: #fff;
}

.embed-card {
    padding: 1rem;
}

/* Dock-style Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 28, 30, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 999px;
    z-index: 1000;
}

.bottom-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition);
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
    filter: brightness(0) invert(0.65);
}

.bottom-nav a:hover { color: var(--text-main); }
.bottom-nav a:hover .nav-icon { filter: brightness(0) invert(0.95); }
.bottom-nav a.active {
    background: var(--gradient-pro);
    color: #111111;
}
.bottom-nav a.active .nav-icon {
    filter: brightness(0) invert(0.1);
}

/* Event Countdown (Floating Widget) */
.countdown {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin: 4rem auto;
    max-width: 600px;
    text-align: center;
}

.countdown h4 { font-size: 1.5rem; margin-bottom: 2rem; }

.time-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.time-box strong {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-pro);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.time-box span { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
#countdown-label { font-size: 14px; color: var(--text-muted); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-shell { padding: 0 1rem; }
    .hero { padding: 80px 1rem 60px; }
    .section-card { padding: 2rem; }
    .blueprint-card { grid-template-columns: 1fr; }
    .blueprint-copy { padding: 2rem; }
    .blueprint-visual { min-height: 320px; }
    .blueprint-badge { right: 1rem; bottom: 1rem; }
    .blueprint-gallery { width: min(320px, 92%); }
    .bottom-nav { width: calc(100% - 2rem); bottom: 1rem; justify-content: space-around; }
    .bottom-nav a { padding: 0.75rem 0.9rem; }
    .bottom-nav .nav-label { display: none; } /* Hide text, rely on icons on mobile */
    .nav-icon { width: 20px; height: 20px; }
    .time-grid { gap: 1rem; }
    .time-box strong { font-size: 2rem; }
    .embed-frame { min-height: 1200px; }
}