/* ========================================
   ANOTA — Landing Page Styles
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text: #e8e6f0;
    --text-muted: #8b87a0;
    --accent: #863bff;
    --accent-light: #a78bfa;
    --accent-glow: rgba(134, 59, 255, 0.3);
    --border: rgba(255, 255, 255, 0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ---------- Background Glows ---------- */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow--top {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(134, 59, 255, 0.15), transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.bg-glow--bottom {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(71, 191, 255, 0.08), transparent 70%);
    bottom: -150px;
    right: -100px;
}

/* ---------- Container ---------- */
.container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Header ---------- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__icon {
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo__text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__download-btn {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.header__download-btn:hover {
    border-color: var(--accent);
    background: rgba(134, 59, 255, 0.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-height: 0;
    padding-top: 16px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-light);
    background: rgba(134, 59, 255, 0.08);
    border: 1px solid rgba(134, 59, 255, 0.15);
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease-out;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 14px;
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

.hero__title--accent {
    background: linear-gradient(135deg, var(--accent), #47bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    max-width: 480px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

/* ---------- Button ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    border-radius: 14px;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.btn--primary {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: #fff;
    box-shadow:
        0 4px 20px var(--accent-glow),
        0 0 0 1px rgba(134, 59, 255, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(134, 59, 255, 0.45),
        0 0 0 1px rgba(134, 59, 255, 0.5);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn__icon {
    width: 18px;
    height: 18px;
}

.hero__version {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ---------- App Preview ---------- */
.hero__preview {
    width: 100%;
    max-width: 680px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    flex-shrink: 1;
    min-height: 0;
}

.preview__window {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(16, 16, 24, 0.9);
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 80px var(--accent-glow);
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.preview__titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.preview__titlebar-dots {
    display: flex;
    gap: 6px;
}

.preview__titlebar-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview__titlebar-dots span:nth-child(1) { background: #ff5f57; }
.preview__titlebar-dots span:nth-child(2) { background: #ffbd2e; }
.preview__titlebar-dots span:nth-child(3) { background: #28c840; }

.preview__titlebar-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.preview__content {
    display: flex;
    height: 210px;
}

.preview__sidebar {
    width: 140px;
    border-right: 1px solid var(--border);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.preview__sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.preview__sidebar-item svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.preview__sidebar-item--active {
    background: rgba(134, 59, 255, 0.12);
    color: var(--accent-light);
}

.preview__sidebar-item--active svg {
    fill: var(--accent-light);
    opacity: 1;
}

.preview__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.preview__toolbar {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border);
}

.preview__breadcrumb {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview__breadcrumb-sep {
    opacity: 0.4;
}

.preview__breadcrumb--current {
    color: var(--text);
    font-weight: 500;
}

.preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px 14px;
    overflow: hidden;
}

.preview__file {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 8px;
    transition: var(--transition);
    cursor: default;
}

.preview__file:hover {
    background: rgba(255, 255, 255, 0.04);
}

.preview__file span {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px 0;
    flex-shrink: 0;
}

.feature {
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.feature:hover {
    border-color: rgba(134, 59, 255, 0.2);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.feature__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(134, 59, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.feature__icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-light);
}

.feature__title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.feature__desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    padding: 16px 0;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer__heart {
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* ---------- Animations ---------- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .container {
        height: auto;
        min-height: 100vh;
        padding: 0 20px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 0.85rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .preview__sidebar {
        display: none;
    }

    .preview__content {
        height: 180px;
    }

    .preview__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .header__download-btn {
        display: none;
    }

    .preview__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
