/* ==========================================
   BridgeTouch - Premium Apple-Style UI
   ========================================== */

:root {
    --bg-primary: #000000;
    --bg-secondary: #0A0A0C;
    --card-bg: #121215;
    --card-hover: #16161B;
    
    --accent-blue: #0071E3;
    --accent-blue-hover: #147CE5;
    --border-dim: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #F5F5F7;
    --text-secondary: #86868B;
    --text-muted: #48484A;
    
    --font-sans: 'Outfit', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Subtle organic background lights (extremely soft & deep) */
.bg-gradient-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

#glow-1 {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

#glow-2 {
    top: 800px;
    right: -200px;
    background: radial-gradient(circle, #5E5CE6 0%, transparent 70%);
}

/* Grid & Layout */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Badges & Accents */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dim);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.badge-icon {
    opacity: 0.7;
}

.accent-text {
    background: linear-gradient(135deg, #FFFFFF 30%, #A2A2A7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.7rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: #FFFFFF;
    color: #000000;
}

.btn-primary:hover {
    transform: scale(1.02);
    background: #F5F5F7;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-dim);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
}

.btn-nav {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    background: var(--accent-blue);
    color: #FFFFFF;
}

.btn-nav:hover {
    background: var(--accent-blue-hover);
}

.badge-version {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.4rem;
    color: var(--text-secondary);
}

/* Header / Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dim);
    height: 52px;
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.link-item {
    font-size: 0.75rem;
    color: #A2A2A7;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-paragraph {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
    line-height: 1.6;
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-visual-wrapper {
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    background: #0D0D11;
    border: 1px solid var(--border-dim);
    border-radius: 20px;
    padding: 0.8rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    max-width: 100%;
}

.hero-main-img {
    max-width: 100%;
    border-radius: 12px;
    display: block;
}

/* Section Title Common */
.section-title-area {
    margin-bottom: 4rem;
}

.section-title-area.text-center {
    text-align: center;
}

.sub-heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
}

.section-headline {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.section-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
}

.text-center .section-lead {
    margin: 0 auto;
}

/* Experience / Demo Section */
.experience {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}

.sim-dashboard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background: #09090C;
    border: 1px solid var(--border-dim);
    border-radius: 24px;
    padding: 5rem 3rem;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.01);
}

/* iPhone Device Simulator */
.device-phone {
    width: 200px;
    height: 390px;
    background: #111114;
    border: 5px solid #2C2C2E;
    border-radius: 36px;
    position: relative;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.phone-dynamic-island {
    width: 56px;
    height: 14px;
    background: #000000;
    border-radius: 99px;
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-display {
    width: 100%;
    height: 100%;
    background: #050508;
    border-radius: 26px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.02);
    overflow: hidden;
    cursor: crosshair;
}

/* Fine-dot matrix layout on phone display */
.trackpad-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 16px 16px;
    background-position: center;
}

.trackpad-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    pointer-events: none;
    z-index: 5;
    color: var(--text-muted);
    transition: opacity 0.5s var(--transition-smooth);
}

.hand-anim-icon {
    stroke: var(--text-muted);
    opacity: 0.6;
    animation: handSwipe 2.5s infinite ease-in-out;
}

@keyframes handSwipe {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -15px); }
}

.trackpad-tip p {
    font-size: 0.75rem;
    margin-top: 0.6rem;
    letter-spacing: -0.1px;
}

.active-touch-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Connector Dot & Bridge */
.sim-connector {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    max-width: 120px;
}

.pulse-bridge {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
}

.pulse-dot {
    position: absolute;
    top: -3px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
    animation: signalSend 2s linear infinite;
}

@keyframes signalSend {
    0% { left: 0%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Mac Simulator */
.device-mac {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mac-display-frame {
    width: 310px;
    height: 190px;
    background: #1C1C1E;
    border: 7px solid #2C2C2E;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.mac-desktop-menubar {
    width: 100%;
    height: 14px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
    font-size: 7px;
    color: rgba(255, 255, 255, 0.6);
}

.apple-icon {
    font-size: 8px;
    color: #FFF;
}

.mac-server-window {
    width: 150px;
    height: 90px;
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mac-window-header {
    height: 16px;
    background: #18181D;
    display: flex;
    align-items: center;
    padding: 0 6px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.04);
}

.mac-window-controls {
    display: flex;
    gap: 4px;
}

.ctrl-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0.8;
}
.ctrl-dot.red { background: #FF5F56; }
.ctrl-dot.yellow { background: #FFBD2E; }
.ctrl-dot.green { background: #27C93F; }

.mac-window-title {
    font-size: 6.5px;
    color: var(--text-secondary);
    margin: 0 auto;
    padding-right: 14px;
}

.mac-window-body {
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: calc(100% - 16px);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 8px;
    font-weight: 500;
    color: #4ADE80;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.15);
    padding: 2px 8px;
    border-radius: 99px;
    margin: 0 auto 6px;
}

.status-pulse-light {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 6px #4ADE80;
}

.url-badge {
    font-size: 7.5px;
    color: var(--text-secondary);
    font-family: monospace;
}

.mac-desktop-cursor {
    position: absolute;
    top: 60px;
    left: 140px;
    z-index: 10;
    pointer-events: none;
}

.mac-bottom-stand {
    width: 54px;
    height: 30px;
    background: #232326;
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

.mac-bottom-base {
    width: 90px;
    height: 3px;
    background: #333336;
    border-radius: 2px;
}

/* Bento Grid Section */
.features {
    padding: 80px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.2rem;
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--border-dim);
    border-radius: 20px;
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.bento-item:hover {
    border-color: var(--border-hover);
    background-color: var(--card-hover);
}

.bento-large {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
}

.bento-large .bento-text {
    width: 55%;
}

.bento-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.bento-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: -0.2px;
}

.bento-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Bento Custom Graphics */
.bento-graphic-lines {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.4;
}

.wave-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    width: 100%;
}

.wave-line:nth-child(2) {
    width: 80%;
    margin-left: 10%;
    background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
}

.bento-mini-menu {
    width: 120px;
    background: #18181F;
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.menu-stub-row {
    font-size: 8px;
    padding: 4px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.menu-stub-row.active {
    background: var(--accent-blue);
    color: #FFFFFF;
}

.menu-stub-row.separator {
    height: 1px;
    background: var(--border-dim);
    margin: 4px 0;
    padding: 0;
}

/* Setup Guide Section */
.setup {
    padding: 80px 0;
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-dim);
    border-radius: 20px;
    padding: 2.2rem;
    transition: var(--transition-smooth);
}

.step-card:hover {
    border-color: var(--border-hover);
    background-color: var(--card-hover);
    transform: translateY(-4px);
}

.step-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-card code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Sponsor & Support Section */
.sponsor {
    padding: 80px 0;
}

.sponsor-wrapper-card {
    background: #09090C;
    border: 1px solid var(--border-dim);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sponsor-decor-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--accent-blue);
}

.sponsor-wrapper-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sponsor-wrapper-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.sponsor-button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-solid-white {
    background: #FFFFFF;
    color: #000000;
}

.btn-solid-white:hover {
    background: #E5E5EA;
}

.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-outline-white:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.04);
}

/* Footer styling */
.footer {
    border-top: 1px solid var(--border-dim);
    padding: 2rem 0;
    background-color: var(--bg-primary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

/* Responsive Queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text-content {
        align-items: center;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .sim-dashboard {
        flex-direction: column;
        padding: 4rem 2rem;
    }
    
    .sim-connector {
        height: 60px;
        width: 1px;
    }
    
    .pulse-bridge {
        width: 1px;
        height: 100%;
    }
    
    .pulse-dot {
        top: 0;
        left: -3px;
        animation: signalSendVertical 2s linear infinite;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bento-large .bento-text {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .bento-graphic-lines {
        width: 100%;
    }
    
    .setup-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes signalSendVertical {
    0% { top: 0%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none; /* Keep nav simple on small screens */
    }
    
    .hero {
        padding-top: 110px;
    }
    
    .hero-headline {
        font-size: 2.8rem;
    }
    
    .section-headline {
        font-size: 1.8rem;
    }
    
    .sponsor-wrapper-card {
        padding: 3rem 1.5rem;
    }
}
