/* DocDireto — Landing Page Specific Styles (depends on common.css) */

/* ========== Announcement Bar ========== */
.announcement {
    background: linear-gradient(90deg, rgba(167, 133, 255, 0.12), rgba(110, 75, 255, 0.12));
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    position: relative;
    font-size: 0.85rem;
    text-align: center;
    color: var(--muted);
}
.announcement strong { color: var(--fg); font-weight: 600; }
.announcement .sep { color: var(--primary); margin: 0 8px; }
.announcement-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    opacity: 0.6;
    transition: opacity var(--transition);
}
.announcement-close:hover { opacity: 1; }
.announcement.hidden { display: none; }

/* ========== Hero ========== */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    isolation: isolate;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(167, 133, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 133, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 80% at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at center, black 30%, transparent 70%);
    z-index: -2;
}

.hero-orb {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(167, 133, 255, 0.35), transparent 55%),
        radial-gradient(circle at 65% 65%, rgba(110, 75, 255, 0.3), transparent 60%);
    filter: blur(40px);
    animation: orbPulse 8s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes orbPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
    50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.hero-ring {
    position: absolute;
    left: 50%;
    top: 45%;
    border-radius: 50%;
    border: 1px dashed rgba(167, 133, 255, 0.18);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}
.hero-ring--sm { width: 380px; height: 380px; animation: spin 60s linear infinite; }
.hero-ring--lg { width: 560px; height: 560px; animation: spin 90s linear infinite reverse; }

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    animation: nodePulse 4s ease-in-out infinite;
    z-index: -1;
}
.hero-node:nth-child(1) { top: 25%; left: 15%; animation-delay: 0s; }
.hero-node:nth-child(2) { top: 40%; right: 12%; animation-delay: 1s; }
.hero-node:nth-child(3) { bottom: 25%; left: 20%; animation-delay: 2s; }
.hero-node:nth-child(4) { bottom: 35%; right: 18%; animation-delay: 3s; }
.hero-node:nth-child(5) { top: 15%; left: 50%; animation-delay: 1.5s; }
.hero-node:nth-child(6) { bottom: 15%; left: 55%; animation-delay: 2.5s; }

@keyframes nodePulse {
    0%, 100% { opacity: 0.3; transform: scale(0.6); }
    50% { opacity: 1; transform: scale(1); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(167, 133, 255, 0.08);
    border: 1px solid rgba(167, 133, 255, 0.25);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeSlideUp 0.7s ease-out 0.1s forwards;
}
.hero-badge svg { width: 14px; height: 14px; color: var(--primary); }

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeSlideUp 0.7s ease-out 0.2s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.65;
    opacity: 0;
    animation: fadeSlideUp 0.7s ease-out 0.3s forwards;
}

.hero-form {
    max-width: 520px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeSlideUp 0.7s ease-out 0.4s forwards;
}

.hero-form-label {
    display: block;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 8px;
    padding-left: 4px;
}

.hero-form-row {
    display: flex;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    transition: all var(--transition);
}
.hero-form-row:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-sm);
}

.hero-form-row input {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 12px 14px;
    font-size: 0.95rem;
    outline: none;
}
.hero-form-row input::placeholder { color: rgba(199, 190, 228, 0.5); }

.hero-form-row button {
    padding: 12px 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: var(--fg);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
    box-shadow: var(--shadow-glow-sm);
}
.hero-form-row button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.hero-form-helper {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 14px;
    text-align: center;
}
.hero-form-helper a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-form-error {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: #ef4444;
    text-align: center;
    line-height: 1.5;
}
.hero-form-error.show { display: block; animation: fadeSlideUp 0.3s ease-out; }

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

/* ========== Marquee ========== */
.marquee-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    background: var(--bg-2);
    overflow: hidden;
}
.marquee {
    display: flex;
    gap: 40px;
    animation: marquee 40s linear infinite;
    width: max-content;
}
.marquee.reverse { animation: marqueeReverse 50s linear infinite; margin-top: 18px; }

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}
.marquee-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.marquee-dot { color: var(--primary); opacity: 0.5; }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes marqueeReverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* ========== Features Grid ========== */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 133, 255, 0.4);
    box-shadow: var(--shadow-glow);
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at top right, rgba(167, 133, 255, 0.12), transparent 60%);
    pointer-events: none;
}
.feature-card--wide { grid-column: span 2; }

.feature-num {
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(167, 133, 255, 0.1);
    border: 1px solid rgba(167, 133, 255, 0.25);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: var(--shadow-glow-sm);
}
.feature-icon svg { width: 26px; height: 26px; color: var(--fg); }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.feature-card p {
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ========== How it works ========== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
}
.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: all var(--transition);
}
.step:hover {
    border-color: rgba(167, 133, 255, 0.35);
    transform: translateY(-3px);
}
.step-num {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.9;
}
.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.step p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ========== Bento grid ========== */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-auto-rows: 1fr;
}
.bento-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}
.bento-card:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 133, 255, 0.4);
    box-shadow: var(--shadow-glow);
}
.bento-card--wide { grid-column: span 2; }
.bento-card--accent {
    background: linear-gradient(135deg, rgba(167, 133, 255, 0.12), rgba(110, 75, 255, 0.06));
    border-color: rgba(167, 133, 255, 0.3);
}
.bento-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.bento-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
}
.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(167, 133, 255, 0.12);
    border: 1px solid rgba(167, 133, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.bento-icon svg { width: 22px; height: 22px; color: var(--primary); }

/* ========== FAQ ========== */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(167, 133, 255, 0.4); }

.faq-question {
    width: 100%;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg);
    text-align: left;
    transition: background var(--transition);
}
.faq-question:hover { background: rgba(167, 133, 255, 0.04); }

.faq-q-num {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-right: 14px;
}

.faq-chevron {
    width: 24px;
    height: 24px;
    color: var(--muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(45deg); color: var(--primary); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-answer-inner {
    padding: 0 26px 22px;
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* ========== CTA final ========== */
.cta {
    padding: 90px 0;
    text-align: center;
    background: radial-gradient(ellipse 80% 100% at center, rgba(167, 133, 255, 0.12), transparent 70%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.cta p {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 32px;
}

/* ========== Landing Responsive ========== */
@media (max-width: 1024px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-card--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
    .hero { padding: 60px 0 80px; }
    .hero-form-row { flex-direction: column; padding: 12px; }
    .hero-form-row button { width: 100%; justify-content: center; padding: 14px; }
    .hero-orb { width: 400px; height: 400px; opacity: 0.7; }
    .hero-ring { display: none; }

    .features { grid-template-columns: 1fr; }
    .feature-card--wide { grid-column: span 1; }

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

    .bento { grid-template-columns: 1fr; }
    .bento-card--wide { grid-column: span 1; }
}

@media (max-width: 480px) {
    .announcement { font-size: 0.78rem; padding-right: 42px; }
    .hero-badge { font-size: 0.75rem; }
    .feature-card, .step, .bento-card { padding: 26px 22px; }
    .faq-question { padding: 18px 20px; font-size: 0.92rem; }
    .faq-answer-inner { padding: 0 20px 18px; }
}
