/* ============================================
   WEBI — Premium Landing Page Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
    --bg: #050505;
    --card-bg: #0f0f0f;
    --card-border: #1e1e1e;
    --accent: #2dd4bf;
    --accent-hover: #24b09e;
    --accent-glow: rgba(45, 212, 191, 0.15);
    --text-main: #f4f4f5;
    --text-dim: #71717a;
    --text-muted: #3f3f46;
    --error: #f87171;
    --transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* --- Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

/* --- Screen-reader only utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Inline SVG icon sizing --- */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.icon-sm  { width: 0.85em; height: 0.85em; }
.icon-check { width: 14px; height: 14px; }

/* --- content-visibility: skip rendering of off-screen sections --- */
.pricing     { content-visibility: auto; contain-intrinsic-size: 0 800px; }
.form-section { content-visibility: auto; contain-intrinsic-size: 0 600px; }

/* --- Base --- */
body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'DM Sans', -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Background Effects --- */
/* Static gradient — no filter, no repaint cost */
.glow {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 80vh;
    background: radial-gradient(ellipse at 50% -5%, rgba(45, 212, 191, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* feTurbulence SVG filter removed — it is the single most GPU-expensive
   effect on mobile. Replaced with a lightweight static dot pattern. */
.noise {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* --- Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.88);
    /* blur(8px) instead of 16px — same visual effect, ~4x cheaper on mobile */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    /* Only transition box-shadow, not padding — avoids layout thrash */
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    background: rgba(5, 5, 5, 0.96);
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.logo span { color: var(--accent); }

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 9px 18px;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    transition: var(--transition);
}

/* --- Floating Call Button --- */
.floating-call-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: var(--accent);
    color: #000;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    z-index: 999;
    text-decoration: none;
    /* Only transition transform+opacity — GPU composited, no repaint */
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.35);
}

/* Pulse ring uses a pseudo-element with transform+opacity — zero repaint cost */
.floating-call-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* --- Main Layout --- */
main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 100px 0 70px;
    max-width: 820px;
    /* No entrance animation on hero — it IS the LCP element.
       Animating opacity on LCP delays Largest Contentful Paint score. */
}

.hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 28px;
}

h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(42px, 8vw, 76px);
    line-height: 1.05;
    margin-bottom: 22px;
    letter-spacing: -2.5px;
    font-weight: 800;
}

h1 span { color: var(--accent); }

.hero p {
    color: var(--text-dim);
    font-size: clamp(16px, 3vw, 19px);
    max-width: 560px;
    margin: 0 auto 36px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.hero-cta i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

/* --- Pricing --- */
.pricing {
    width: 100%;
    padding: 70px 0;
    text-align: center;
}

.pricing h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(26px, 5vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: left;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pricing-card.popular {
    border-color: rgba(45, 212, 191, 0.3);
    background: linear-gradient(145deg, #131313 0%, var(--card-bg) 100%);
}

.badge {
    position: absolute;
    top: -13px;
    right: 28px;
    background: var(--accent);
    color: #000;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-top {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
}

.plan-name {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.plan-price .amount {
    font-family: 'Syne', sans-serif;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.plan-price .period {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
}

.plan-desc {
    color: var(--text-dim);
    font-size: 13px;
}

.features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.features li {
    font-size: 15px;
    color: #c4c4c7;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features li i {
    color: var(--accent);
    font-size: 13px;
    width: 16px;
    flex-shrink: 0;
}

.features li.feature-no {
    color: var(--text-muted);
}

.features li.feature-no i {
    color: var(--text-muted);
}

.select-plan-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #2e2e2e;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: auto;
}

.pricing-card.popular .select-plan-btn {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* --- Form Section --- */
.form-section {
    width: 100%;
    max-width: 520px;
    padding: 70px 0 80px;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 44px 36px;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.form-title {
    text-align: center;
    margin-bottom: 28px;
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.form-group {
    margin-bottom: 14px;
}

input, select, textarea {
    width: 100%;
    background: #141414;
    border: 1px solid #262626;
    color: var(--text-main);
    padding: 15px 18px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder { color: var(--text-muted); }

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371717a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}

select option {
    background: #1a1a1a;
    color: var(--text-main);
}

textarea { resize: vertical; min-height: 90px; }

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

input.error, select.error, textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.field-error {
    display: block;
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
    padding-left: 4px;
    min-height: 16px;
}

.submit-btn {
    background: var(--accent);
    color: #000;
    border: none;
    width: 100%;
    padding: 17px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 8px;
}

.submit-btn i { font-size: 18px; }

.form-success {
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent);
    font-weight: 600;
}

.form-success[hidden] { display: none; }

.terms-agrement {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.7;
}

.terms-agrement a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* --- Footer --- */
footer {
    position: relative;
    z-index: 1;
    padding: 48px 24px;
    text-align: center;
    width: 100%;
    border-top: 1px solid var(--card-border);
    background: #080808;
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-logo span { color: var(--accent); }

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--text-dim);
    font-size: 20px;
    transition: var(--transition);
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    border-radius: 50%;
}

.copyright {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* =============================================
   HOVER STATES — Desktop only (no-touch)
   ============================================= */
body.can-hover .logo:hover { color: var(--accent); }

body.can-hover .contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

body.can-hover .hero-cta:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
}

body.can-hover .hero-cta:hover i {
    transform: translateY(3px);
}

body.can-hover .pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(45, 212, 191, 0.1);
}

body.can-hover .pricing-card:hover .select-plan-btn:not(.popular .select-plan-btn) {
    background: rgba(255,255,255,0.05);
    border-color: #444;
}

body.can-hover .select-plan-btn:hover {
    opacity: 0.9;
}

body.can-hover .submit-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.25);
}

body.can-hover .social-links a:hover {
    color: var(--accent);
    border-color: rgba(45, 212, 191, 0.3);
}

body.can-hover .floating-call-btn:hover {
    transform: scale(1.1);
    background-color: #fff;
}

body.can-hover .terms-agrement a:hover {
    text-decoration: underline;
}

/* Active / press states */
.pricing-card:active { transform: scale(0.985); }
.submit-btn:active    { transform: scale(0.97) translateY(0) !important; opacity: 0.85; }
.select-plan-btn:active { opacity: 0.7; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .glass-card { padding: 28px 20px; }
    .hero { padding: 70px 0 50px; }
    .floating-call-btn {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
    h1 { letter-spacing: -1.5px; }
}

@media (max-width: 480px) {
    main { padding: 0 16px; }
    .glass-card { padding: 24px 16px; }
    .form-title { font-size: 22px; }
    .hero-cta { font-size: 14px; padding: 12px 22px; }
}
