/* Abyss Exchange — Void-inspired FixedFloat swap UI */

:root {
    --bg-primary: #050017;
    --bg-secondary: #07071c;
    --bg-elevated: rgba(15, 10, 40, 0.96);
    --bg-soft: rgba(34, 24, 72, 0.7);
    --accent: #a855ff;
    --accent-soft: #7c3aed;
    --accent-bright: #e879f9;
    --accent-blue: #38bdf8;
    --border-subtle: rgba(148, 163, 255, 0.28);
    --text: #f9f5ff;
    --muted: #a5b4fc;
    --error: #fecaca;
    --error-strong: #f97373;
    --success: #bbf7d0;
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.9);
    --radius-lg: 24px;
    --radius-pill: 999px;
    --transition-fast: 160ms ease-out;
    --transition-med: 220ms ease-out;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at top, rgba(88, 28, 135, 0.6), transparent 55%),
        radial-gradient(circle at bottom, rgba(59, 130, 246, 0.5), transparent 50%),
        radial-gradient(circle at right, rgba(236, 72, 153, 0.35), transparent 50%),
        linear-gradient(135deg, #020016, #050017 40%, #02010f 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.page-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* Header */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(148, 163, 255, 0.15), transparent 55%),
                rgba(6, 6, 24, 0.85);
    border: 1px solid rgba(129, 140, 248, 0.4);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 16px;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 14px;
    background: radial-gradient(circle at 25% 0, #c4b5fd, #7c3aed 40%, #312e81 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 10px 35px rgba(76, 29, 149, 0.9);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 11px;
    color: var(--muted);
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 13px;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    padding: 4px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-soft), var(--accent-bright));
    transition: width var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.primary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: #050016;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.9);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.primary-chip:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 22px 52px rgba(124, 58, 237, 1);
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 52px;
    align-items: center;
}

.hero-copy .eyebrow {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 40px);
    line-height: 1.1;
    margin: 0 0 14px;
}

.hero .accent {
    background: linear-gradient(135deg, #c4b5fd, #a855ff, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 0 0 18px;
    font-size: 15px;
    color: var(--muted);
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: #050016;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 20px 44px rgba(76, 29, 149, 0.95);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.primary-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 24px 60px rgba(76, 29, 149, 1);
}

.primary-btn-full {
    width: 100%;
}

.ghost-btn {
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 255, 0.5);
    background: rgba(15, 23, 42, 0.72);
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.ghost-btn:hover {
    background: rgba(30, 64, 175, 0.6);
    border-color: rgba(129, 140, 248, 0.9);
    color: var(--text);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 12px;
    color: var(--muted);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(129, 140, 248, 0.6);
}

/* Hero orbit visual */

.hero-orbit {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(129, 140, 248, 0.35);
}

.orbit-ring-lg {
    width: 280px;
    height: 280px;
}

.orbit-ring-md {
    width: 210px;
    height: 210px;
}

.orbit-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.9), transparent 60%);
    filter: blur(10px);
}

.orbit-card {
    position: relative;
    width: 260px;
    padding: 16px 18px 14px;
    border-radius: 22px;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.24), transparent 65%),
                rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(129, 140, 248, 0.8);
    box-shadow: var(--shadow-soft);
}

.orbit-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.orbit-rate {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 12px;
    margin-bottom: 12px;
}

.orbit-rate-value {
    font-size: 20px;
    font-weight: 600;
}

.orbit-footnote {
    font-size: 11px;
    color: var(--muted);
}

/* Swap section */

.swap-section {
    margin-bottom: 56px;
}

.swap-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 28px;
    align-items: flex-start;
}

.swap-card {
    border-radius: var(--radius-lg);
    padding: 22px 24px 22px;
    background:
        radial-gradient(circle at top left, rgba(129, 140, 248, 0.16), transparent 60%),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 55%),
        rgba(10, 10, 31, 0.96);
    border: 1px solid rgba(148, 163, 255, 0.7);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.swap-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.swap-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.swap-header p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* Rate toggle pills */

.rate-toggle {
    display: inline-flex;
    padding: 3px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(129, 140, 248, 0.7);
}

.rate-pill {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.rate-pill.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: #050016;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.9);
}

/* Form fields */

.swap-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-row-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 13px;
    color: var(--muted);
}

.field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.field {
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.field:focus {
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.8);
    background: rgba(15, 23, 42, 0.98);
}

.field-with-addon {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
    gap: 10px;
    align-items: stretch;
}

.field-with-addon input {
    border-radius: 14px;
}

.field-with-addon select {
    border-radius: 11px;
    border: 1px solid rgba(129, 140, 248, 0.6);
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent 60%), #020617;
    color: var(--text);
    font-size: 13px;
    padding: 0 12px;
    outline: none;
}

.field-with-addon select:focus {
    border-color: var(--accent-bright);
}

.swap-toggle {
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: var(--muted);
    font-size: 18px;
    padding: 0 10px;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.swap-toggle:hover {
    background: rgba(30, 64, 175, 0.7);
    border-color: rgba(129, 140, 248, 1);
    transform: translateY(-1px);
}

.field-hint {
    font-size: 11px;
    color: var(--muted);
    margin: 2px 0 0;
}

.status-row {
    min-height: 18px;
    font-size: 12px;
    color: var(--muted);
}

.status-row.status-error {
    color: var(--error-strong);
}

.status-row.status-ok {
    color: var(--success);
}

/* Sidebar / order panel */

.swap-sidebar {
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    background:
        radial-gradient(circle at top left, rgba(129, 140, 248, 0.2), transparent 60%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.25), transparent 60%),
        rgba(5, 10, 32, 0.96);
    border: 1px solid rgba(129, 140, 248, 0.8);
    box-shadow: var(--shadow-soft);
    min-height: 220px;
}

.sidebar-placeholder h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.sidebar-placeholder p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--muted);
}

.sidebar-placeholder ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: var(--muted);
}

/* Order card */

.order-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card h3 {
    margin: 0;
}

.order-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 13px;
    color: var(--muted);
}

.order-chip {
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 255, 0.7);
}

.order-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.order-field-label {
    color: var(--muted);
}

.order-field code {
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 255, 0.4);
    word-break: break-all;
}

.order-timer {
    font-size: 12px;
    color: var(--muted);
}

.order-link {
    font-size: 12px;
    margin-top: 4px;
}

.order-link a {
    color: var(--accent-blue);
    text-decoration: none;
}

.order-link a:hover {
    text-decoration: underline;
}

/* Disclaimers */

.disclaimer {
    margin: 8px 0 0;
    font-size: 11px;
    color: var(--muted);
}

.disclaimer.secondary {
    color: rgba(148, 163, 255, 0.8);
}

/* Info sections */

.info-section {
    margin-bottom: 44px;
}

.section-header {
    margin-bottom: 18px;
}

.section-header h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.section-header p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.feature-grid,
.pricing-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.feature-card,
.pricing-card,
.faq-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(12, 10, 34, 0.96);
    border: 1px solid rgba(129, 140, 248, 0.55);
    backdrop-filter: blur(14px);
}

.feature-card h3,
.pricing-card h3,
.faq-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.feature-card p,
.pricing-card p,
.faq-item p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.pricing-main {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* API warning */

.api-warning {
    margin-top: 14px;
    font-size: 11px;
    color: var(--error);
    background: rgba(127, 29, 29, 0.24);
    border-radius: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(248, 113, 113, 0.7);
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(51, 65, 85, 0.9);
    padding-top: 20px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
}

.site-footer .brand {
    margin-bottom: 8px;
}

.footer-note {
    margin: 0;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

/* Responsive */

@media (max-width: 900px) {
    .site-header {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .hero-orbit {
        order: -1;
    }

    .swap-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 18px 14px 32px;
    }

    .swap-card,
    .swap-sidebar {
        padding: 18px 16px;
    }

    .field-row-inline {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-grid,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
