/* ==========================================================================
   ReadCred design system
   Extracted from the Claude Design project "Readcred Forside".
   Fonts: Sora (headings), Manrope (body) - loaded via Google Fonts in layout.
   ========================================================================== */

:root {
    /* Core palette */
    --rc-bg: #0D0B14;
    --rc-text: #ECEAF2;
    --rc-text-soft: rgba(236, 234, 242, .72);
    --rc-text-muted: rgba(236, 234, 242, .66);
    --rc-text-dim: rgba(236, 234, 242, .42);

    /* Brand accents */
    --rc-purple: #8B7CF6;
    --rc-purple-light: #B4A9F9;
    --rc-teal: #4FD8C4;
    --rc-gradient: linear-gradient(135deg, var(--rc-purple), var(--rc-teal));

    /* Surfaces */
    --rc-surface: rgba(236, 234, 242, .04);
    --rc-border: rgba(236, 234, 242, .1);
    --rc-border-soft: rgba(236, 234, 242, .07);

    /* Type */
    --rc-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --rc-font-heading: 'Sora', var(--rc-font-body);

    /* Layout */
    --rc-page-pad: 56px;
    --rc-radius-sm: 8px;
    --rc-radius: 12px;
    --rc-radius-lg: 16px;
    --rc-radius-xl: 20px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--rc-bg);
    color: var(--rc-text);
    font-family: var(--rc-font-body);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--rc-font-heading);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
}

h1 { font-size: 62px; line-height: 1.08; letter-spacing: -.028em; }
h2 { font-size: 36px; }
h3 { font-size: 20px; }

p { margin: 0 0 1em; }

a { color: var(--rc-purple-light); }

.text-muted { color: var(--rc-text-muted); }

.lead {
    font-size: 18px;
    line-height: 1.65;
    color: var(--rc-text-muted);
}

.gradient-text {
    background: linear-gradient(90deg, var(--rc-purple), var(--rc-teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--rc-page-pad);
    background: rgba(13, 11, 20, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rc-border-soft);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--rc-text);
    font-family: var(--rc-font-heading);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.01em;
}

/* Two overlapping circles, screen-blended */
.logo-mark {
    position: relative;
    width: 34px;
    height: 28px;
    flex: none;
    isolation: isolate;
}

.logo-mark::before,
.logo-mark::after {
    content: '';
    position: absolute;
    top: 1px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.logo-mark::before { left: 0; background: var(--rc-purple); }
.logo-mark::after { left: 10px; background: var(--rc-teal); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
}

.nav-links a {
    color: var(--rc-text-soft);
    text-decoration: none;
}

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

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

.btn {
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 30px;
    border-radius: 10px;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--rc-font-body);
}

.btn-primary {
    background: var(--rc-gradient);
    color: var(--rc-bg);
}

.btn-primary:hover { filter: brightness(1.1); }

.btn-outline {
    background: transparent;
    border: 1px solid rgba(236, 234, 242, .22);
    color: var(--rc-text);
    padding: 13px 28px;
}

.btn-outline:hover { border-color: rgba(236, 234, 242, .5); }

.btn-sm {
    font-size: 14px;
    padding: 9px 20px;
    border-radius: var(--rc-radius-sm);
}

/* --------------------------------------------------------------------------
   Badge / pill
   -------------------------------------------------------------------------- */

.badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--rc-purple-light);
    border: 1px solid rgba(139, 124, 246, .4);
    background: rgba(139, 124, 246, .1);
    padding: 6px 16px;
    border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Sections & hero
   -------------------------------------------------------------------------- */

.section { padding: 72px var(--rc-page-pad); }

.hero {
    position: relative;
    padding: 100px var(--rc-page-pad) 90px;
    text-align: center;
    background:
        radial-gradient(ellipse 46% 55% at 50% -10%, rgba(139, 124, 246, .22), transparent 70%),
        radial-gradient(ellipse 30% 40% at 78% 10%, rgba(79, 216, 196, .1), transparent 70%);
}

.hero h1 { max-width: 820px; margin: 0 auto 24px; }
.hero .lead { max-width: 580px; margin: 0 auto 36px; }

.btn-row {
    display: flex;
    gap: 14px;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--rc-surface);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius-lg);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: var(--rc-text);
}

.card:hover,
.card.accent-purple:hover {
    border-color: rgba(139, 124, 246, .5);
    background: rgba(139, 124, 246, .06);
}

.card.accent-teal:hover {
    border-color: rgba(79, 216, 196, .5);
    background: rgba(79, 216, 196, .05);
}

.card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(236, 234, 242, .62);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-family: var(--rc-font-heading);
    font-weight: 700;
    font-size: 15px;
    background: rgba(139, 124, 246, .16);
    border: 1px solid rgba(139, 124, 246, .35);
    color: var(--rc-purple-light);
}

.accent-teal .card-icon {
    background: rgba(79, 216, 196, .14);
    border-color: rgba(79, 216, 196, .35);
    color: var(--rc-teal);
}

.card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--rc-purple-light);
    margin-top: auto;
}

.accent-teal .card-link { color: var(--rc-teal); }

/* --------------------------------------------------------------------------
   FAQ / accordion (uses <details>/<summary>, no JS needed)
   -------------------------------------------------------------------------- */

.faq {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq details {
    background: var(--rc-surface);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 20px 24px;
}

.faq details:hover { border-color: rgba(139, 124, 246, .35); }

.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 16px;
    font-weight: 600;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    color: var(--rc-purple-light);
    font-size: 18px;
}

.faq details[open] summary::after { content: '\2212'; }

.faq details p {
    margin: 12px 0 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--rc-text-muted);
}

/* --------------------------------------------------------------------------
   CTA panel
   -------------------------------------------------------------------------- */

.cta-panel {
    margin: 0 var(--rc-page-pad);
    border-radius: var(--rc-radius-xl);
    border: 1px solid rgba(139, 124, 246, .3);
    background: radial-gradient(ellipse 60% 90% at 50% 110%, rgba(139, 124, 246, .22), transparent 70%);
    padding: 64px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Forms (dashboard) - derived from the design tokens
   -------------------------------------------------------------------------- */

.form-field { margin-bottom: 18px; }

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--rc-text-soft);
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    background: var(--rc-surface);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius-sm);
    padding: 11px 14px;
    color: var(--rc-text);
    font: inherit;
    font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(139, 124, 246, .6);
    box-shadow: 0 0 0 3px rgba(139, 124, 246, .15);
}

.form-error {
    color: #FF8A80;
    font-size: 13.5px;
    margin-top: 6px;
}

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

.footer {
    display: flex;
    justify-content: space-between;
    padding: 28px var(--rc-page-pad);
    font-size: 13px;
    color: var(--rc-text-dim);
}

.footer-links { display: flex; gap: 24px; }

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

@media (max-width: 900px) {
    :root { --rc-page-pad: 24px; }
    h1 { font-size: 40px; }
    h2 { font-size: 28px; }
    .card-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 18px; }
    .btn-row { flex-direction: column; align-items: center; }
    .cta-panel { padding: 40px 24px; }
}
