/* ==========================================================================
   Transactology.net - Scandinavian functional fintech
   Palette: #ffffff #f5f7fa #1a202c #2563eb #059669 #e2e8f0
   Typeface: DM Sans
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a202c;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    color: #1d4ed8;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 0.85rem;
}

.eyebrow-light {
    color: #93c5fd;
}

.display {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #1a202c;
    margin: 0 0 1.25rem;
}

.section-title {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.018em;
    color: #1a202c;
    margin: 0 0 0.85rem;
}

.section-title-light {
    color: #ffffff;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-lede {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #475569;
    margin: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #e2e8f0;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #1a202c;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand:hover {
    color: #1a202c;
}

.brand-mark {
    display: inline-flex;
}

.brand-name {
    font-size: 1.05rem;
}

.primary-nav {
    display: none;
    gap: 2rem;
    font-size: 0.95rem;
    color: #334155;
}

.primary-nav a {
    color: #334155;
    transition: color 0.18s ease;
}

.primary-nav a:hover {
    color: #2563eb;
}

@media (min-width: 820px) {
    .primary-nav {
        display: inline-flex;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 6px 18px -10px rgba(37, 99, 235, 0.55);
}

.btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px rgba(37, 99, 235, 0.6);
}

.btn-ghost {
    background: transparent;
    color: #1a202c;
    border-color: #e2e8f0;
}

.btn-ghost:hover {
    border-color: #cbd5f5;
    color: #2563eb;
}

.btn-compact {
    padding: 0.6rem 1.05rem;
    font-size: 0.88rem;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.07), transparent 55%),
        radial-gradient(circle at 92% 12%, rgba(5, 150, 105, 0.06), transparent 50%),
        #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 940px) {
    .hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 4rem;
    }
}

.hero-copy .eyebrow {
    margin-bottom: 1rem;
}

.lede {
    font-size: 1.125rem;
    line-height: 1.65;
    color: #475569;
    max-width: 38ch;
    margin: 0 0 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5f5;
}

.dot-success {
    background: #059669;
}

.dot-brand {
    background: #2563eb;
}

/* Hero card (sample ledger) */

.hero-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.02),
        0 30px 60px -40px rgba(15, 23, 42, 0.18);
}

.ledger-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.ledger-title {
    font-weight: 500;
    font-size: 0.95rem;
    color: #1a202c;
}

.ledger-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.ledger-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #059669;
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5);
    animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.ledger-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.ledger-rows li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    background: #f5f7fa;
    border-radius: 12px;
    font-size: 0.9rem;
}

.ledger-id {
    font-variant-numeric: tabular-nums;
    color: #475569;
    font-weight: 500;
}

.ledger-amount {
    font-variant-numeric: tabular-nums;
    color: #1a202c;
    font-weight: 500;
    text-align: right;
}

.ledger-status {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.status-cleared {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

.status-pending {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.status-review {
    background: rgba(234, 179, 8, 0.14);
    color: #a16207;
}

.ledger-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: #64748b;
}

.ledger-progress {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    max-width: 140px;
}

.ledger-progress-bar {
    display: block;
    height: 100%;
    width: 62%;
    background: linear-gradient(90deg, #2563eb, #059669);
    border-radius: 999px;
    animation: ledger-fill 6s ease-in-out infinite alternate;
}

@keyframes ledger-fill {
    from { width: 32%; }
    to { width: 88%; }
}

/* ==========================================================================
   Features
   ========================================================================== */

.features {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: #ffffff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.feature-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    background: #ffffff;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5f5;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.25);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    margin-bottom: 1rem;
}

.feature-card:nth-child(2n) .feature-icon {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.feature-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a202c;
}

.feature-card p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Stats (dark inversion)
   ========================================================================== */

.stats {
    background: #1a202c;
    color: #ffffff;
    padding: clamp(4rem, 7vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}

.stats::before,
.stats::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
}

.stats::before {
    width: 320px;
    height: 320px;
    background: rgba(37, 99, 235, 0.5);
    top: -120px;
    left: -80px;
}

.stats::after {
    width: 280px;
    height: 280px;
    background: rgba(5, 150, 105, 0.45);
    bottom: -120px;
    right: -60px;
}

.stats-inner {
    position: relative;
    z-index: 1;
}

.stats-head {
    max-width: 640px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    transition: border-color 0.22s ease, transform 0.22s ease;
}

.stat:hover {
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.stat-value {
    display: block;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.5rem;
}

.stat:nth-child(2) .stat-value,
.stat:nth-child(4) .stat-value {
    color: #6ee7b7;
}

.stat:nth-child(1) .stat-value,
.stat:nth-child(3) .stat-value {
    color: #93c5fd;
}

.stat-label {
    display: block;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #cbd5f5;
}

/* ==========================================================================
   Use cases
   ========================================================================== */

.use-cases {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: #f5f7fa;
}

.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.usecase-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.usecase-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5f5;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.22);
}

.usecase-tag {
    display: inline-block;
    align-self: flex-start;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
}

.usecase-card:nth-child(2n) .usecase-tag {
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
}

.usecase-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a202c;
}

.usecase-card p {
    margin: 0;
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.6;
}

.usecase-bullets {
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.usecase-bullets li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.92rem;
    color: #334155;
}

.usecase-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 14px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
}

.usecase-card:nth-child(2n) .usecase-bullets li::before {
    background: #059669;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 920px) {
    .contact-grid {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 4rem;
    }
}

.contact-copy .section-title {
    text-align: left;
}

.contact-copy .section-lede {
    text-align: left;
}

.contact-points {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.contact-points li {
    padding: 0.95rem 1.1rem;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #334155;
}

.contact-points strong {
    color: #1a202c;
    font-weight: 700;
}

/* Form */

.contact-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: grid;
    gap: 1.1rem;
    box-shadow: 0 20px 50px -40px rgba(15, 23, 42, 0.2);
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a202c;
    letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1a202c;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #94a3b8;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #cbd5f5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none' stroke='%231a202c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 1 7 7 13 1'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

@media (min-width: 540px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-foot {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.form-note {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
    transition: color 0.18s ease;
}

.form-note.is-success {
    color: #047857;
}

.form-note.is-error {
    color: #b91c1c;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #f5f7fa;
    border-top: 1px solid #e2e8f0;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
    color: #475569;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 760px) {
    .footer-inner {
        grid-template-columns: 1fr 1.4fr;
        gap: 3rem;
    }
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-title {
    margin: 0;
    font-weight: 700;
    color: #1a202c;
    font-size: 1rem;
}

.footer-sub {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: #64748b;
    max-width: 32ch;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.footer-nav h4 {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1a202c;
    font-weight: 700;
}

.footer-nav a {
    display: block;
    color: #475569;
    font-size: 0.92rem;
    padding: 0.18rem 0;
    transition: color 0.18s ease;
}

.footer-nav a:hover {
    color: #2563eb;
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.82rem;
    color: #64748b;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
