:root {
    --bg: #000000;
    --accent: #00d4ff;
    --accent-glow: rgba(0, 212, 255, 0.4);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-heavy: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --text-dark: #475569;
}

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

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow); }
}

/* Navigation */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 8%;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(25px);
    position: sticky; top: 0; z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
}

.logo { 
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800; 
    font-size: 1.5rem; 
    letter-spacing: -0.5px; 
    text-decoration: none; 
    color: #fff; 
    min-height: 48px;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

.logo span { color: var(--text-main); }
.logo span::after { content: '.'; color: var(--accent); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { 
    text-decoration: none; 
    color: var(--text-dim); 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
}
.nav-links a:hover { color: var(--accent); }

/* Hero Section */
.hero {
    display: flex; flex-wrap: wrap; align-items: center;
    padding: 6rem 8%; min-height: 95vh; gap: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.1;
    z-index: -1;
}

.hero-content { 
    flex: 1.2; 
    min-width: 320px; 
    animation: slideIn 1s ease forwards;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--glass-heavy);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: 'JetBrains Mono';
    font-size: 0.7rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 6rem); 
    line-height: 1; 
    margin-bottom: 2rem; 
    font-weight: 800;
    background: linear-gradient(135deg, #fff 50%, #666);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.vision-box {
    border-left: 3px solid var(--accent); 
    padding-left: 2rem;
    color: var(--text-dim); 
    font-size: 1.25rem; 
    max-width: 550px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.primary-btn {
    padding: 16px 32px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    border-radius: 12px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.secondary-btn {
    padding: 16px 32px;
    background: var(--glass);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: 0.3s;
    font-size: 0.9rem;
}

.secondary-btn:hover {
    background: var(--glass-heavy);
    border-color: var(--accent);
}

/* iPhone Display */
.phone-wrapper { 
    flex: 0.8; 
    display: flex; 
    justify-content: center; 
    min-width: 300px;
    animation: fadeIn 1.2s ease forwards;
}

.iphone {
    width: 300px; height: 620px;
    background: #000; border-radius: 50px;
    border: 12px solid #1a1a1a;
    box-shadow: 0 50px 100px -20px rgba(0,212,255,0.25);
    position: relative; overflow: hidden;
}

.dynamic-island {
    position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
    width: 100px; height: 32px; background: #000; border-radius: 20px; z-index: 100;
}

.web-view {
    width: 100%; height: 100%; background: #050505;
    animation: preview-scroll 20s ease-in-out infinite;
}

@keyframes preview-scroll { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-40%); } }

.web-header { 
    padding: 60px 25px 15px; 
    border-bottom: 1px solid #111; 
    color: var(--accent); 
    font-weight: 800; 
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.mock-feed { padding: 20px; }
.mock-post { 
    background: #000; 
    border-radius: 0; 
    padding: 12px;
    margin-bottom: 0; 
    border-bottom: 1px solid #1a1a1a; 
    text-align: left;
}

.post-header {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.post-avatar {
    width: 32px;
    height: 32px;
    background: var(--glass-heavy);
    border-radius: 50%;
}

.post-info {
    display: flex;
    flex-direction: column;
}

.post-user {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
}

.post-handle {
    font-size: 0.65rem;
    color: var(--text-dark);
}

.post-content {
    font-size: 0.75rem;
    color: #efefef;
    line-height: 1.3;
}

/* Common Section Header */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-tag {
    font-family: 'JetBrains Mono';
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
}

/* Community Section */
.community-bar {
    padding: 8rem 8%; 
    background: linear-gradient(180deg, #000, #050505);
    border-top: 1px solid var(--border); 
    border-bottom: 1px solid var(--border);
}

.social-icons { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }

.social-link {
    text-decoration: none; color: var(--text-dim); font-size: 2.5rem;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}

.social-link span { 
    font-size: 0.8rem; 
    font-family: 'JetBrains Mono'; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.social-link:hover { color: var(--accent); transform: translateY(-10px) scale(1.1); }

/* Domains Grid */
section { padding: 8rem 8%; }

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; 
}

.card {
    background: var(--glass); 
    padding: 3rem 2rem; 
    border-radius: 24px; 
    border: 1px solid var(--border);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, var(--accent-glow), transparent);
    opacity: 0;
    transition: 0.4s;
}

.card:hover { 
    transform: translateY(-10px);
    border-color: var(--accent); 
    background: rgba(0,212,255,0.05); 
}

.card:hover::after { opacity: 0.1; }

.card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.card h3 { 
    font-family: 'Plus Jakarta Sans'; 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    color: #fff; 
}

.card p { 
    font-size: 1rem; 
    color: var(--text-dim); 
    line-height: 1.6;
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-card {
    background: linear-gradient(90deg, var(--glass), rgba(0,0,0,0));
    padding: 4rem; 
    border-radius: 32px; 
    border: 1px solid var(--border);
    transition: 0.4s;
    display: flex;
    align-items: center;
    position: relative;
}

.project-card:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.project-content {
    max-width: 600px;
}

.project-card h2 { 
    font-size: 3rem; 
    margin-bottom: 1.5rem; 
    letter-spacing: -1px;
    color: #fff;
}

.project-card p {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    text-decoration: none; 
    font-weight: 800; 
    font-size: 1rem; 
    letter-spacing: 1px;
    transition: 0.3s;
}

.cta-btn:hover {
    gap: 20px;
}

/* Footer */
footer {
    padding: 6rem 8%; 
    text-align: center; 
    border-top: 1px solid var(--border);
    background: #000;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 54px;
    width: auto;
    opacity: 0.8;
}

footer p {
    color: var(--text-dark); 
    font-family: 'JetBrains Mono'; 
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.timestamp {
    color: var(--accent);
    opacity: 0.6;
    font-weight: bold;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding: 6rem 8%; }
    .hero-content { order: 1; width: 100%; }
    .phone-wrapper { order: 2; width: 100%; margin-top: 2rem; }
    .vision-box { margin: 0 auto 3rem; border-left: 3px solid var(--accent); padding: 0 0 0 2rem; border-top: none; text-align: left; }
    .hero-actions { justify-content: center; flex-direction: row; width: 100%; max-width: none; margin: 0; }
}

@media (max-width: 768px) {
    nav { padding: 1.25rem 8%; }
    .nav-links { display: none; }
    .hero-content h1 { font-size: 3.5rem; }
    .section-header h2 { font-size: 2.5rem; }
    .project-card { padding: 4rem; text-align: left; }
    .project-card h2 { font-size: 3rem; }
    .social-icons { gap: 4rem; }
    .grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    section { padding: 8rem 8%; }
    .community-bar { padding: 8rem 8%; }
}