/* ===========================
   Sodify Workplace — Landing
   =========================== */

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

:root {
    --c-bg:       #0a0a0f;
    --c-surface:  #111118;
    --c-border:   rgba(255,255,255,0.08);
    --c-text:     #e8e8f0;
    --c-muted:    #7a7a8e;
    --c-accent:   #4f7cff;
    --c-accent2:  #00e5a0;
    --c-amber:    #f5a623;
    --font-head:  'DM Serif Display', Georgia, serif;
    --font-body:  'DM Sans', system-ui, sans-serif;
    --r-card:     16px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}

html { scroll-behavior: smooth; }

body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 2rem;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--c-text);
    font-family: var(--font-body); font-weight: 600;
}
.logo-mark {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
    border-radius: 8px;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 700; color: #fff;
    letter-spacing: -0.5px;
}
.logo-mark.small { width: 24px; height: 24px; font-size: 10px; border-radius: 6px; }
.logo-text em { font-family: var(--font-head); font-style: italic; }
.nav-links {
    display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
    color: var(--c-muted); text-decoration: none; font-size: 14px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-text); }
.btn-nav {
    color: var(--c-text) !important;
    background: rgba(79,124,255,0.12);
    border: 1px solid rgba(79,124,255,0.3);
    padding: 8px 18px; border-radius: 8px;
    font-weight: 500; transition: all 0.2s !important;
}
.btn-nav:hover { background: rgba(79,124,255,0.22) !important; border-color: var(--c-accent) !important; }

/* ---- BUTTONS ---- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--c-accent);
    color: #fff; text-decoration: none;
    padding: 14px 28px; border-radius: 10px;
    font-weight: 600; font-size: 15px;
    transition: all 0.2s; box-shadow: 0 0 0 0 rgba(79,124,255,0.4);
}
.btn-primary:hover {
    background: #5d8aff;
    box-shadow: 0 0 32px rgba(79,124,255,0.35);
    transform: translateY(-1px);
}
.btn-primary.large { padding: 16px 36px; font-size: 16px; border-radius: 12px; }
.btn-ghost {
    display: inline-flex; align-items: center;
    color: var(--c-muted); text-decoration: none;
    padding: 14px 20px; font-size: 15px;
    transition: color 0.2s;
}
.btn-ghost:hover { color: var(--c-text); }

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    padding: 120px 2rem 80px;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
}
.grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.18;
}
.orb-1 {
    width: 600px; height: 600px;
    background: var(--c-accent);
    top: -150px; left: -100px;
    animation: float 8s ease-in-out infinite;
}
.orb-2 {
    width: 400px; height: 400px;
    background: var(--c-accent2);
    top: 100px; right: -50px;
    animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-inner {
    max-width: 1200px; margin: 0 auto;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(79,124,255,0.1);
    border: 1px solid rgba(79,124,255,0.25);
    color: #8aabff; font-size: 12px; font-weight: 600;
    padding: 5px 14px; border-radius: 100px;
    letter-spacing: 0.05em; text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease both;
}
.hero-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.08; letter-spacing: -0.02em;
    color: #fff; margin-bottom: 24px;
    animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
    max-width: 520px;
    color: var(--c-muted); font-size: 18px; line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeUp 0.6s 0.2s ease both;
}
.hero-cta {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 56px;
    animation: fadeUp 0.6s 0.3s ease both;
}
.hero-stats {
    display: flex; align-items: center; gap: 28px;
    animation: fadeUp 0.6s 0.4s ease both;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-n { font-size: 22px; font-weight: 700; color: #fff; }
.stat-l { font-size: 12px; color: var(--c-muted); }
.stat-div { width: 1px; height: 36px; background: var(--c-border); }

/* ---- APP PREVIEW ---- */
.hero-preview {
    max-width: 1200px; margin: 60px auto 0;
    position: relative; z-index: 1;
    animation: fadeUp 0.8s 0.5s ease both;
}
.preview-window {
    background: #0d0d14;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}
.preview-bar {
    background: #181822;
    padding: 12px 16px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--c-border);
}
.preview-bar span {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
}
.preview-bar span:nth-child(1) { background: #ff5f57; }
.preview-bar span:nth-child(2) { background: #febc2e; }
.preview-bar span:nth-child(3) { background: #28c840; }
.preview-url {
    margin-left: 12px; background: rgba(255,255,255,0.06);
    border-radius: 6px; padding: 4px 14px; font-size: 12px;
    color: var(--c-muted); flex: 1; max-width: 300px;
}
.preview-body { display: flex; height: 280px; }
.preview-sidebar {
    width: 56px; background: #0c0c13;
    border-right: 1px solid var(--c-border);
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 0; gap: 8px;
}
.ps-logo {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
    border-radius: 8px; display: grid; place-items: center;
    font-size: 11px; font-weight: 700; color: #fff;
    margin-bottom: 8px;
}
.ps-item {
    width: 36px; height: 36px; border-radius: 8px;
    display: grid; place-items: center;
    color: var(--c-muted); cursor: pointer;
    transition: all 0.15s;
}
.ps-item:hover, .ps-item.active {
    background: rgba(79,124,255,0.15); color: var(--c-accent);
}
.preview-main { flex: 1; padding: 20px; overflow: hidden; }
.pm-header { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.pm-cards { display: flex; gap: 10px; margin-bottom: 20px; }
.pm-card {
    flex: 1; padding: 12px 14px; border-radius: 10px;
}
.pm-card.blue { background: rgba(79,124,255,0.12); border: 1px solid rgba(79,124,255,0.2); }
.pm-card.green { background: rgba(0,229,160,0.08); border: 1px solid rgba(0,229,160,0.15); }
.pm-card.amber { background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.15); }
.pm-card-label { font-size: 11px; color: var(--c-muted); margin-bottom: 4px; }
.pm-card-n { font-size: 22px; font-weight: 700; }
.pm-card.blue .pm-card-n { color: #7aaaff; }
.pm-card.green .pm-card-n { color: var(--c-accent2); }
.pm-card.amber .pm-card-n { color: var(--c-amber); }
.pm-tasks { display: flex; flex-direction: column; gap: 8px; }
.pm-task {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--c-muted); padding: 6px 10px;
    border-radius: 6px; background: rgba(255,255,255,0.03);
}
.pm-task.done { color: rgba(255,255,255,0.3); text-decoration: line-through; }
.check { color: var(--c-accent2); font-size: 12px; }
.circle {
    width: 14px; height: 14px; border-radius: 50%;
    border: 1.5px solid var(--c-border); display: inline-block;
    flex-shrink: 0;
}

/* ---- FEATURES ---- */
.features { padding: 120px 2rem; }
.features-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
    font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--c-accent);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff; margin-bottom: 56px;
    line-height: 1.1;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.feature-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
    padding: 28px; position: relative; overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
    border-color: rgba(79,124,255,0.25);
    transform: translateY(-2px);
}
.feature-card.feat-large {
    grid-column: span 2;
}
.feature-card.feat-dark {
    background: rgba(79,124,255,0.06);
    border-color: rgba(79,124,255,0.2);
}
.feat-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 14px; color: var(--c-muted); line-height: 1.65; }

/* Chat visual inside feature card */
.feat-visual { margin-top: 20px; }
.chat-msg {
    display: flex; align-items: flex-end; gap: 8px;
    margin-bottom: 10px;
}
.chat-msg.right { justify-content: flex-end; }
.chat-av {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(79,124,255,0.3); color: #aac4ff;
    display: grid; place-items: center; font-size: 11px; font-weight: 700;
    flex-shrink: 0;
}
.chat-av.green { background: rgba(0,229,160,0.2); color: var(--c-accent2); }
.chat-bubble {
    background: rgba(255,255,255,0.06); border-radius: 12px 12px 12px 2px;
    padding: 8px 12px; font-size: 13px; color: var(--c-text); max-width: 280px;
}
.chat-bubble.right-bubble { border-radius: 12px 12px 2px 12px; background: rgba(79,124,255,0.2); }

/* ---- CTA BANNER ---- */
.cta-banner {
    padding: 100px 2rem;
    background: linear-gradient(135deg, rgba(79,124,255,0.08), rgba(0,229,160,0.05));
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}
.cta-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.cta-inner h2 {
    font-family: var(--font-head); font-size: 2.8rem;
    color: #fff; margin-bottom: 14px; line-height: 1.1;
}
.cta-inner p { color: var(--c-muted); font-size: 17px; margin-bottom: 36px; }

/* ---- FOOTER ---- */
.footer { padding: 32px 2rem; }
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--c-muted);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--c-muted); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--c-text); }
.footer-copy { font-size: 12px; color: rgba(122,122,142,0.6); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .feature-card.feat-large { grid-column: span 2; }
    .pm-cards { display: none; }
}
@media (max-width: 640px) {
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card.feat-large { grid-column: span 1; }
    .hero-stats { gap: 16px; }
    .nav-links a:not(.btn-nav) { display: none; }
}
