/* =====================================================================
   Inboxxa — stylesheet
   Modern, clean SaaS look. No framework.
   ===================================================================== */

:root {
    --brand:        #4f46e5;
    --brand-dark:   #4338ca;
    --brand-light:  #eef2ff;
    --accent:       #06b6d4;
    --ink:          #0f172a;
    --ink-soft:     #475569;
    --ink-mute:     #64748b;
    --line:         #e2e8f0;
    --bg:           #ffffff;
    --bg-soft:      #f8fafc;
    --bg-alt:       #f1f5f9;
    --success:      #16a34a;
    --radius:       14px;
    --radius-lg:    22px;
    --shadow-sm:    0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
    --shadow-md:    0 10px 25px -8px rgba(15,23,42,.15);
    --shadow-lg:    0 30px 60px -20px rgba(79,70,229,.35);
    --container:    1120px;
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 22px;
}

/* --- Buttons ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: inherit;
    font-weight: 600;
    font-size: .98rem;
    line-height: 1;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(79,70,229,.6);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(79,70,229,.7); }

.btn-ghost {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-invert {
    background: #fff;
    color: var(--brand);
}
.btn-invert:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(0,0,0,.3); }

/* --- Pills ------------------------------------------------------------ */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--brand);
    background: var(--brand-light);
    padding: .4rem .85rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}
.pill-light { background: rgba(255,255,255,.15); color: #fff; }
.pill-available { background: rgba(22,163,74,.12); color: var(--success); }
.pill-available .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(22,163,74,.5);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* --- Header ----------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand-mark { color: var(--brand); display: inline-flex; }
.brand-accent { color: var(--brand); }

.main-nav { display: flex; gap: .3rem; margin-left: 1rem; }
.main-nav a {
    padding: .5rem .85rem;
    border-radius: 8px;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: .96rem;
    transition: background .15s, color .15s;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.main-nav a.is-active { color: var(--brand); background: var(--brand-light); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }

/* Language switch */
.lang-switch { position: relative; }
.lang-toggle {
    display: inline-flex; align-items: center; gap: .3rem;
    font: inherit; font-weight: 600; font-size: .88rem;
    color: var(--ink-soft);
    background: transparent; border: 1px solid var(--line);
    border-radius: 999px; padding: .5rem .8rem; cursor: pointer;
    transition: border-color .15s, color .15s;
}
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    list-style: none; margin: 0; padding: .4rem;
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow-md);
    min-width: 190px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility .15s;
    z-index: 50;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .65rem; border-radius: 8px;
    color: var(--ink-soft); font-size: .92rem;
}
.lang-menu a:hover { background: var(--bg-alt); color: var(--ink); }
.lang-menu a.is-active { color: var(--brand); font-weight: 600; }
.lang-code { font-weight: 700; font-size: .78rem; width: 24px; color: var(--brand); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

.mobile-nav { display: none; flex-direction: column; padding: .5rem 22px 1rem; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: .8rem .4rem; color: var(--ink-soft); font-weight: 500; border-bottom: 1px solid var(--bg-alt); }

/* --- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(60% 60% at 85% 0%, rgba(6,182,212,.10), transparent 60%),
        radial-gradient(50% 60% at 10% 10%, rgba(79,70,229,.12), transparent 60%);
    z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero-title { margin-bottom: .6rem; }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 34ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 1.2rem; }
.hero-trust { font-size: .86rem; color: var(--ink-mute); }

.hero-visual { position: relative; }
.hero-glow {
    position: absolute; inset: -20% -10% -10% -10%;
    background: radial-gradient(closest-side, rgba(79,70,229,.35), transparent 70%);
    filter: blur(30px); z-index: -1;
}
.mock-window {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-lg); overflow: hidden;
    transform: rotate(1.2deg);
}
.mock-bar { display: flex; gap: 7px; padding: 14px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.mock-bar span:nth-child(1) { background: #f87171; }
.mock-bar span:nth-child(2) { background: #fbbf24; }
.mock-bar span:nth-child(3) { background: #34d399; }
.mock-body { padding: 22px; }
.mock-field { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg-alt); }
.mock-label { font-size: .75rem; font-weight: 700; color: var(--ink-mute); width: 44px; text-transform: uppercase; }
.mock-from { font-weight: 600; color: var(--brand); }
.mock-line { height: 10px; border-radius: 6px; background: var(--bg-alt); margin: 14px 0; }
.mock-line.short { width: 55%; height: 10px; margin: 0; }
.mock-line.med { width: 75%; }
.mock-divider { height: 1px; background: var(--line); margin: 16px 0; }
.mock-send {
    display: inline-block; margin-top: 12px;
    background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem;
    padding: .6rem 1.1rem; border-radius: 999px;
}

/* --- Sections --------------------------------------------------------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.page-hero {
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
    text-align: center;
    background: linear-gradient(180deg, var(--brand-light), transparent);
}
.page-hero-sub { color: var(--ink-soft); font-size: 1.15rem; max-width: 46ch; margin-inline: auto; }
.page-hero-404 { min-height: 50vh; display: flex; align-items: center; }
.page-hero-404 .container > * { margin-inline: auto; }

/* --- Feature grid ----------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card h3 { margin-bottom: .35rem; }
.feature-card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-light); color: var(--brand);
    margin-bottom: 1rem;
}
.feature-card-highlight { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.feature-card-highlight .feature-icon { background: var(--brand); color: #fff; }

/* --- CTA band --------------------------------------------------------- */
.cta-band {
    padding: 0;
}
.cta-band-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--brand), var(--brand-dark) 60%, #6d28d9);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.6rem 2.8rem;
    box-shadow: var(--shadow-lg);
    margin-block: 1rem;
}
.cta-band-inner h2 { color: #fff; margin-bottom: .3rem; }
.cta-band-inner p { color: rgba(255,255,255,.85); margin: 0; }

/* --- Pricing ---------------------------------------------------------- */
.pricing-wrap { display: flex; justify-content: center; }
.price-card {
    width: 100%; max-width: 460px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.price-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}
.price-card-head h2 { margin-bottom: .2rem; }
.price-card-head p { color: var(--ink-soft); }
.price-amount { display: flex; align-items: flex-start; gap: .15rem; margin: 1.4rem 0 .2rem; color: var(--ink); }
.price-currency { font-size: 1.6rem; font-weight: 700; margin-top: .5rem; }
.price-value { font-size: 3.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.price-period { font-size: 1rem; color: var(--ink-mute); align-self: flex-end; margin-bottom: .55rem; }
.price-amount-sm .price-value { font-size: 2.6rem; }
.price-amount-sm .price-currency { font-size: 1.2rem; }
.price-note { color: var(--ink-mute); font-size: .9rem; margin-bottom: 1.4rem; }
.price-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .7rem; }
.price-list li { display: flex; align-items: center; gap: .65rem; color: var(--ink-soft); font-size: .96rem; }
.price-list svg { color: var(--brand); flex: none; }
.price-footnote { text-align: center; color: var(--ink-mute); font-size: .85rem; margin: .9rem 0 0; }

/* --- Contact ---------------------------------------------------------- */
.contact-single { display: flex; justify-content: center; }
.contact-form {
    width: 100%; max-width: 560px;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm);
}

/* Wrapper around the injected contact-form-widget script. */
.form-widget { min-height: 120px; }
.form-widget :is(input, textarea, select) { font-family: inherit; }

/* --- Forms ------------------------------------------------------------ */
.form-row { margin-bottom: 1.05rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .35rem; }
.form-row input, .form-row textarea {
    width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
    padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px;
    background: #fff; transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.form-row input.invalid, .form-row textarea.invalid { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
textarea { resize: vertical; }

.input-affix { display: flex; align-items: center; }
.input-affix input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-suffix {
    padding: .75rem .8rem; border: 1px solid var(--line); border-left: 0;
    border-radius: 0 10px 10px 0; background: var(--bg-alt);
    color: var(--ink-mute); font-weight: 700;
}

.order-success {
    margin: 1rem 0 0; padding: .85rem 1rem;
    background: rgba(22,163,74,.1); color: var(--success);
    border-radius: 10px; font-weight: 600; font-size: .95rem;
}

/* --- Service page ----------------------------------------------------- */
.service-hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.service-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(50% 55% at 80% 0%, rgba(6,182,212,.10), transparent 60%),
        radial-gradient(45% 55% at 5% 5%, rgba(79,70,229,.12), transparent 60%);
}
.service-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.service-title { margin-bottom: .3rem; }
.service-address {
    display: inline-block; font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 1.1rem; font-weight: 600; color: var(--brand);
    background: var(--brand-light); padding: .4rem .9rem; border-radius: 8px;
    margin-bottom: 1.2rem; word-break: break-all;
}
.service-intro { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
.service-points { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: grid; gap: .8rem; }
.service-points li { display: flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--ink); }
.service-points svg { color: var(--success); flex: none; }

.service-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.service-card-inner { padding: 1.8rem; }
.service-card-inner h3 { margin: .8rem 0 .1rem; }
.service-card-domain { color: var(--ink-mute); font-size: .9rem; margin-bottom: 1rem; word-break: break-all; }

/* --- Footer ----------------------------------------------------------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 3rem; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
    padding: 3rem 22px 2rem;
}
.footer-brand p { color: var(--ink-soft); max-width: 30ch; margin-top: .6rem; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: .9rem; }
.footer-col a { display: block; color: var(--ink-soft); padding: .3rem 0; font-size: .95rem; }
.footer-col a:hover { color: var(--brand); }
.footer-col a.is-active { color: var(--brand); font-weight: 600; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
    padding: 1.4rem 22px; border-top: 1px solid var(--line);
    color: var(--ink-mute); font-size: .85rem;
}
.footer-domain { font-weight: 600; color: var(--ink-soft); }

/* --- Modal ------------------------------------------------------------ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
    position: relative;
    width: 100%; max-width: 860px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,.5);
    transform: translateY(12px) scale(.98);
    transition: transform .25s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute; top: 12px; right: 14px; z-index: 5;
    width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.85); color: var(--ink);
    font-size: 1.6rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.modal-close:hover { background: var(--bg-alt); }

.modal-grid { display: grid; grid-template-columns: .85fr 1.15fr; }

.modal-product {
    background: linear-gradient(160deg, var(--brand), var(--brand-dark) 70%, #6d28d9);
    color: #fff;
}
.modal-product-inner { padding: 2rem 1.8rem; }
.modal-product-name { color: #fff; margin: .3rem 0 .2rem; }
.modal-product-desc { color: rgba(255,255,255,.8); font-size: .92rem; }
.modal-price { display: flex; align-items: baseline; gap: .3rem; margin: 1.2rem 0 .2rem; }
.modal-price-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.modal-price-period { color: rgba(255,255,255,.8); }
.modal-billed { color: rgba(255,255,255,.75); font-size: .82rem; margin-bottom: 1.3rem; }
.modal-incl { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .55rem; }
.modal-incl li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: rgba(255,255,255,.92); }
.modal-incl svg { color: #fff; flex: none; opacity: .9; }
.modal-total {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.2);
    font-size: .95rem;
}
.modal-total strong { font-size: 1.3rem; }
.modal-total small { font-weight: 500; opacity: .8; font-size: .8rem; }

.modal-form-wrap { padding: 2.2rem 2rem; }
.modal-title { margin-bottom: 1.3rem; }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 460px; }
    .service-hero-inner { grid-template-columns: 1fr; }
    .service-card { max-width: 460px; }
    .contact-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-product { display: none; }
}

@media (max-width: 720px) {
    .main-nav { display: none; }
    .nav-burger { display: flex; }
    .header-actions .btn { display: none; }
    .site-header.nav-open .mobile-nav { display: flex; }
    .cta-band-inner { padding: 2rem 1.6rem; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 420px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
}
