/* ============================================================
   APPLINOX – Main Stylesheet
   ============================================================ */

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

:root {
    --bg:          #07070f;
    --bg-card:     #0f0f1a;
    --bg-card-hover: #15152a;
    --border:      rgba(255,255,255,0.08);
    --border-hover:rgba(255,255,255,0.18);

    --text-primary:   #ffffff;
    --text-secondary: rgba(255,255,255,0.55);
    --text-muted:     rgba(255,255,255,0.35);

    --accent-1: #7c5cfc;   /* purple */
    --accent-2: #4f9eff;   /* blue   */
    --accent-3: #c084fc;   /* violet */

    --gradient-text: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #c084fc 100%);
    --gradient-btn:  linear-gradient(135deg, #7c5cfc, #4f9eff);
    --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,92,252,0.35), transparent 70%);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: 0.25s ease;
    --shadow-card: 0 4px 32px rgba(0,0,0,0.4);
    --shadow-card-hover: 0 8px 48px rgba(124,92,252,0.2);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; }

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
}

.section-subtitle {
    margin-top: 12px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Glow Decorations ---------- */
.glow {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.glow--top {
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    opacity: 0.7;
}

.glow--bottom {
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    opacity: 0.5;
}

/* ---------- Button ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn--primary {
    background: var(--gradient-btn);
    color: #fff;
    box-shadow: 0 0 32px rgba(124,92,252,0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 48px rgba(124,92,252,0.55);
    opacity: 0.95;
}

.btn__arrow {
    font-size: 1.1em;
    transition: transform var(--transition);
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* ---------- Header / Nav ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0;
    background: rgba(7,7,15,0);
    transition: background var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
    background: rgba(7,7,15,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo img {
    height: 36px;
    width: auto;
}

.nav__links {
    display: flex;
    gap: 28px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nav__links a:hover {
    color: var(--text-primary);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(124,92,252,0.15);
    border: 1px solid rgba(124,92,252,0.35);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a78bfa;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.08;
    max-width: 760px;
}

.hero__description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.65;
}

/* ---------- Products Section ---------- */
.products {
    padding: 100px 0;
    position: relative;
}

.products__header {
    text-align: center;
    margin-bottom: 56px;
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.product-card__icon img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
}

.product-card__info {
    flex: 1;
    min-width: 0;
}

.product-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-card__tagline {
    margin-top: 3px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card__arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color var(--transition), transform var(--transition);
    flex-shrink: 0;
}

.product-card:hover .product-card__arrow {
    color: var(--accent-1);
    transform: translateX(3px);
}

/* Empty state */
.products__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 80px 24px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.products__empty-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ---------- Features Section ---------- */
.features {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
}

.features__header {
    text-align: center;
    margin-bottom: 56px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.feature-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(124,92,252,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card__icon img {
    width: 28px;
    height: 28px;
}

.feature-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features__cta {
    display: flex;
    justify-content: center;
    margin-top: 56px;
    position: relative;
    z-index: 1;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__logo img {
    height: 31px;
    width: auto;
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer__nav {
    display: flex;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.footer__nav a:hover {
    color: var(--text-primary);
}

/* ---------- Pages (Privacy / Terms) ---------- */
.page {
    min-height: 100svh;
    padding: 140px 0 80px;
}

.page__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.page__date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.page__content {
    max-width: 720px;
}

.page__content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 36px 0 12px;
    color: var(--text-primary);
}

.page__content p,
.page__content li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.page__content ul {
    padding-left: 20px;
    margin-top: 8px;
}

.page__content li {
    margin-bottom: 6px;
}

.page__content a {
    color: #a78bfa;
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .nav__links { display: none; }

    .hero {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .products { padding: 60px 0; }
    .features { padding: 60px 0 80px; }

    .footer__inner { flex-direction: column; align-items: flex-start; }
    .footer__nav { flex-direction: column; gap: 12px; }

    .products__grid {
        grid-template-columns: 1fr;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }
}

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

.hero__badge    { animation: fadeUp 0.6s ease both; }
.hero__title    { animation: fadeUp 0.6s 0.1s ease both; }
.hero__description { animation: fadeUp 0.6s 0.2s ease both; }
.hero__inner .btn  { animation: fadeUp 0.6s 0.3s ease both; }
