/* =====================================================
   IkumiHost — Main Stylesheet
   Aesthetic: Midnight Studio
   Fonts: Fraunces (display) · Plus Jakarta Sans (body) · JetBrains Mono (code)
   ===================================================== */

/* ---- Reset & Variables ---- */

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

:root {
    --bg:           #09090E;
    --surface:      #111118;
    --surface-2:    #18181F;
    --text:         #FAFAF8;
    --text-muted:   #8B8B9A;
    --accent:       #F97316;
    --accent-dark:  #EA6C0A;
    --accent-glow:  rgba(249,115,22,.18);
    --accent-bg:    rgba(249,115,22,.08);
    --success:      #34D399;
    --success-bg:   rgba(52,211,153,.08);
    --error:        #F87171;
    --error-bg:     rgba(248,113,113,.08);
    --border:       rgba(255,255,255,.07);
    --border-focus: rgba(249,115,22,.6);
    --radius:       6px;
    --radius-lg:    12px;
    --shadow-sm:    0 1px 3px rgba(0,0,0,.4);
    --shadow:       0 8px 32px rgba(0,0,0,.5), 0 1px 4px rgba(0,0,0,.3);
    --font-serif:   'Fraunces', Georgia, serif;
    --font-sans:    'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Subtle noise texture on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: .025;
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ---- Typography ---- */

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.15;
    font-weight: 400;
}

.mono {
    font-family: var(--font-mono);
    font-size: .875rem;
}

.inline-code {
    font-family: var(--font-mono);
    font-size: .85em;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: .1em .35em;
    border-radius: 3px;
    color: var(--accent);
}

.link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(249,115,22,.4);
}

.link:hover {
    color: var(--accent-dark);
    text-decoration-color: var(--accent-dark);
}

/* ---- Layout ---- */

.container {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6rem 1.25rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background .15s, color .15s, border-color .15s, box-shadow .2s, transform .1s;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 0;
}

.btn--primary {
    background: var(--accent);
    color: #0A0A0F;
    border-color: var(--accent);
    font-weight: 600;
}

.btn--primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}

.btn--ghost:hover {
    border-color: rgba(255,255,255,.2);
    color: var(--text);
    background: rgba(255,255,255,.04);
}

.btn--danger {
    background: transparent;
    color: var(--error);
    border-color: rgba(248,113,113,.3);
}

.btn--danger:hover {
    background: var(--error-bg);
    border-color: var(--error);
}

.btn--sm {
    padding: .4rem .9rem;
    font-size: .875rem;
}

.btn--lg {
    padding: .875rem 2rem;
    font-size: 1rem;
}

.btn--block {
    width: 100%;
}

/* ---- Badges ---- */

.badge {
    display: inline-flex;
    align-items: center;
    padding: .2em .65em;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.badge--active   { background: rgba(52,211,153,.1);  color: var(--success); border: 1px solid rgba(52,211,153,.2); }
.badge--free     { background: var(--surface-2);     color: var(--text-muted); border: 1px solid var(--border); }
.badge--revoked  { background: var(--error-bg);      color: var(--error);   border: 1px solid rgba(248,113,113,.2); }

/* ---- Flash messages ---- */

.flash {
    padding: .875rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: .9375rem;
    border: 1px solid transparent;
}

.flash--success { background: var(--success-bg); color: var(--success); border-color: rgba(52,211,153,.2); }
.flash--error   { background: var(--error-bg);   color: var(--error);   border-color: rgba(248,113,113,.2); }
.flash--info    { background: var(--accent-bg);  color: var(--accent);  border-color: rgba(249,115,22,.2); }

/* ---- Form errors ---- */

.form-errors {
    background: var(--error-bg);
    border: 1px solid rgba(248,113,113,.2);
    border-radius: var(--radius);
    padding: .875rem 1.25rem;
    margin-bottom: 1.5rem;
}

.form-error {
    color: var(--error);
    font-size: .9375rem;
}

.form-error + .form-error {
    margin-top: .375rem;
}

/* ---- Forms ---- */

.form-group {
    display: flex;
    flex-direction: column;
    gap: .375rem;
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: .01em;
}

.form-group--contact {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-hint {
    font-size: .8125rem;
    color: var(--text-muted);
}

.form-hint-inline {
    font-weight: 400;
    color: var(--text-muted);
}

.form-input {
    padding: .6875rem .875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    font-family: var(--font-sans);
    font-size: .9375rem;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.form-input::placeholder {
    color: rgba(139,139,154,.5);
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}

.form-input--sm {
    padding: .5rem .75rem;
    font-size: .875rem;
}

.inline-form {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.inline-form .form-group {
    margin-bottom: 0;
    min-width: 200px;
}

/* ---- Header ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9,9,14,.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.logo-mark {
    display: flex;
    align-items: center;
    color: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text);
    letter-spacing: -.01em;
    font-weight: 400;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-link {
    padding: .4rem .75rem;
    border-radius: var(--radius);
    font-size: .9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s, background .15s;
    font-weight: 400;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,.05);
}

.nav-link--active {
    color: var(--text);
}

/* ---- Footer ---- */

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-tagline {
    font-size: .875rem;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.footer-link {
    font-size: .875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
}

.footer-link:hover {
    color: var(--text);
}

.footer-copy {
    font-size: .8125rem;
    color: var(--text-muted);
    text-align: right;
}

/* ---- Hero ---- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 8rem 0 7rem;
    text-align: center;
}

/* Dot-grid background */
.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
}

/* Orange radial glow */
.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(249,115,22,.15) 0%, transparent 65%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-inline: auto;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .3rem .9rem;
    background: rgba(249,115,22,.08);
    color: var(--accent);
    border: 1px solid rgba(249,115,22,.2);
    border-radius: 100px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-family: var(--font-sans);

    opacity: 0;
    animation: fadeUp .6s ease forwards;
    animation-delay: .1s;
}

.hero__title {
    font-size: clamp(3rem, 7vw, 5rem);
    letter-spacing: -.025em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 400;

    opacity: 0;
    animation: fadeUp .7s ease forwards;
    animation-delay: .25s;
}

.hero__title em {
    font-style: italic;
    color: var(--accent);
    text-shadow: 0 0 40px rgba(249,115,22,.35);
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2.75rem;
    line-height: 1.7;
    font-weight: 300;

    opacity: 0;
    animation: fadeUp .7s ease forwards;
    animation-delay: .4s;
}

.hero__actions {
    display: flex;
    gap: .875rem;
    justify-content: center;
    flex-wrap: wrap;

    opacity: 0;
    animation: fadeUp .7s ease forwards;
    animation-delay: .55s;
}

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

/* ---- Sections ---- */

.section-title {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    letter-spacing: -.025em;
    margin-bottom: .75rem;
    text-align: center;
    font-weight: 400;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 520px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
    font-weight: 300;
}

/* ---- Features ---- */

.features {
    padding: 6rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-card {
    padding: 2.25rem 2rem;
    background: var(--surface);
    transition: background .2s;
    position: relative;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(249,115,22,.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s;
}

.feature-card:hover {
    background: var(--surface-2);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card__icon {
    margin-bottom: 1.25rem;
    display: block;
    color: var(--accent);
    opacity: .85;
}

.feature-card__icon svg {
    display: block;
}

.feature-card__title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--text);
}

.feature-card__body {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 300;
}

/* ---- How it works ---- */

.how-it-works {
    padding: 6rem 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}

.step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step__number {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--accent-bg);
    border: 1px solid rgba(249,115,22,.3);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    margin-top: .1rem;
}

.step__title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .375rem;
}

.step__body {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 300;
}

/* ---- CTA band ---- */

.cta-band {
    background: var(--accent);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.cta-band__inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-band__title {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    color: #0A0A0F;
    margin-bottom: .75rem;
    font-weight: 400;
    letter-spacing: -.02em;
}

.cta-band__body {
    font-size: 1.0625rem;
    color: rgba(10,10,15,.65);
    margin-bottom: 2.25rem;
    font-weight: 300;
}

.cta-band .btn--primary {
    background: #0A0A0F;
    border-color: #0A0A0F;
    color: var(--accent);
}

.cta-band .btn--primary:hover {
    background: #1a1a24;
    border-color: #1a1a24;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

/* ---- Page hero (inner pages) ---- */

.page-hero {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
}

.page-hero__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: -.025em;
    margin-bottom: .75rem;
    font-weight: 400;
}

.page-hero__subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ---- Pricing ---- */

.pricing {
    padding: 3rem 0 6rem;
}

.pricing__inner {
    max-width: 480px;
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 780px;
}

.pricing-card__period {
    font-size: 1.25rem;
    font-style: normal;
    color: var(--text-muted);
    margin-left: .15em;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: border-color .2s, box-shadow .2s;
}

.pricing-card--featured {
    border-color: rgba(249,115,22,.4);
    box-shadow: 0 0 0 1px rgba(249,115,22,.15), 0 24px 64px rgba(249,115,22,.06);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 1.75rem;
    background: var(--accent);
    color: #0A0A0F;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .75rem;
    border-radius: 100px;
    font-family: var(--font-sans);
}

.pricing-card__name {
    font-size: 1.125rem;
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .8125rem;
}

.pricing-card__amount {
    font-family: var(--font-serif);
    font-size: 3rem;
    letter-spacing: -.03em;
    color: var(--text);
    font-style: italic;
    line-height: 1;
}

.pricing-card__price {
    margin-bottom: 1.25rem;
}

.pricing-card__desc {
    font-size: .9375rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.65;
    font-weight: 300;
}

.pricing-card__features {
    list-style: none;
    margin-bottom: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.pricing-card__features li {
    font-size: .9375rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text);
}

.pricing-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* ---- FAQ ---- */

.faq {
    padding: 6rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.faq__inner {
    max-width: 680px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
}

.faq__item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.faq__item:first-child {
    border-top: 1px solid var(--border);
}

.faq__question {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--text);
}

.faq__answer {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

/* ---- Auth pages ---- */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    flex: 1;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.auth-card__header {
    margin-bottom: 2rem;
}

.auth-card__title {
    font-size: 2rem;
    letter-spacing: -.025em;
    margin-bottom: .375rem;
    font-style: italic;
    font-weight: 400;
}

.auth-card__sub {
    font-size: .9375rem;
    color: var(--text-muted);
    font-weight: 300;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-card__legal {
    margin-top: 1.25rem;
    font-size: .8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
}

/* ---- Language switcher ---- */

.lang-switcher {
    display: flex;
    gap: 2px;
    margin-left: .5rem;
    padding-left: .75rem;
    border-left: 1px solid var(--border);
}

.lang-btn {
    padding: .25rem .45rem;
    border-radius: 3px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s, background .15s;
    font-family: var(--font-sans);
}

.lang-btn:hover {
    color: var(--text);
    background: rgba(255,255,255,.06);
}

.lang-btn--active {
    color: var(--accent);
    background: var(--accent-bg);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand { align-items: center; }
    .footer-copy  { text-align: center; }

    .hero { padding: 5rem 0 4rem; }

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