/* Tanso.biz — corporate gradient SaaS for carbon trading */

:root {
    --white: #ffffff;
    --dark: #0f172a;
    --carbon: #334155;
    --green: #059669;
    --green-deep: #047857;
    --green-light: #ecfdf5;
    --border: #e2e8f0;
    --accent: #0284c7;
    --muted: #64748b;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --container: 1200px;
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--carbon);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 160ms ease;
}

a:hover {
    color: var(--green);
}

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    color: var(--dark);
    line-height: 1.2;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h2 {
    font-weight: 700;
    font-size: clamp(1.75rem, 2.6vw, 2.4rem);
}

h3 {
    font-weight: 700;
    font-size: 1.25rem;
}

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    white-space: nowrap;
}

.btn-lg {
    padding: 0.95rem 1.6rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px rgba(5, 150, 105, 0.28);
}

.btn-primary:hover {
    background: var(--green-deep);
    border-color: var(--green-deep);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 22px rgba(5, 150, 105, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border-color: var(--border);
}

.btn-outline-dark:hover {
    background: var(--green-light);
    border-color: var(--green);
    color: var(--green-deep);
}

.btn-ghost {
    background: transparent;
    color: var(--dark);
    border-color: transparent;
    padding: 0.7rem 0.9rem;
}

.btn-ghost:hover {
    color: var(--green-deep);
    background: var(--green-light);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand:hover {
    color: var(--dark);
}

.brand-mark {
    display: inline-block;
    width: 28px;
    height: 28px;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-dot {
    color: var(--green);
}

.primary-nav {
    display: flex;
    gap: 1.6rem;
}

.primary-nav a {
    color: var(--carbon);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
}

.primary-nav a:hover {
    color: var(--dark);
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 200ms ease;
}

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

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0b1124 0%, #0f172a 45%, #102b3d 100%);
    color: var(--white);
    padding: 6rem 0 7rem;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(800px circle at 80% -10%, rgba(2, 132, 199, 0.25), transparent 60%),
        radial-gradient(600px circle at -10% 110%, rgba(5, 150, 105, 0.22), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 720px;
    height: 720px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(5, 150, 105, 0.18), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

.hero-inner {
    text-align: center;
    max-width: 900px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a7f3d0;
    background: rgba(5, 150, 105, 0.12);
    border: 1px solid rgba(5, 150, 105, 0.45);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.6rem;
}

.hero-title {
    font-weight: 700;
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
}

.hero-accent {
    background: linear-gradient(120deg, #34d399 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem;
    color: #94a3b8;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

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

.hero-meta .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18);
}

/* ---------- Logo Bar ---------- */
.logo-bar {
    background: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.logo-bar-title {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin: 0 0 1.5rem;
    font-family: var(--font-mono);
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem 2rem;
}

.client-logo {
    flex: 1 1 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    filter: grayscale(1) opacity(0.5);
    transition: filter 240ms ease, transform 240ms ease;
}

.client-logo svg {
    width: 100%;
    max-width: 150px;
    height: 36px;
}

.client-logo:hover {
    filter: grayscale(0) opacity(1);
    transform: translateY(-1px);
}

/* ---------- Section heads ---------- */
.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--green);
    margin-bottom: 0.85rem;
}

.section-title {
    margin: 0 0 0.85rem;
    color: var(--dark);
}

.section-lead {
    color: var(--carbon);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Features ---------- */
.features {
    padding: 5.5rem 0;
    background: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.feature {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.85rem;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(5, 150, 105, 0.06), transparent 55%);
    opacity: 0;
    transition: opacity 280ms ease;
    pointer-events: none;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(5, 150, 105, 0.35);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--green-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

.feature h3 {
    color: var(--dark);
    margin-bottom: 0.6rem;
}

.feature p {
    color: var(--carbon);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--carbon);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px var(--green-light);
}

/* ---------- Metrics ---------- */
.metrics {
    padding: 5rem 0;
    background: var(--green-light);
    border-top: 1px solid rgba(5, 150, 105, 0.15);
    border-bottom: 1px solid rgba(5, 150, 105, 0.15);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.metric {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(5, 150, 105, 0.18);
    box-shadow: var(--shadow-sm);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.metric:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--green);
    line-height: 1.1;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.metric-label {
    color: var(--carbon);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: 5.5rem 0;
    background: var(--white);
}

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

.testimonial {
    margin: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    position: relative;
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 0.4rem;
    left: 1.2rem;
    font-family: Georgia, serif;
    font-size: 4.5rem;
    color: var(--green);
    opacity: 0.18;
    line-height: 1;
}

.testimonial:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial blockquote {
    margin: 0 0 1.25rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--dark);
}

.testimonial figcaption {
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}

.testimonial figcaption strong {
    display: block;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.testimonial figcaption span {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---------- Pricing ---------- */
.pricing {
    padding: 5.5rem 0;
    background: linear-gradient(180deg, var(--white) 0%, #f8fafc 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.plan {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.85rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
    position: relative;
}

.plan:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(5, 150, 105, 0.35);
}

.plan-highlight {
    border: 2px solid var(--green);
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(5, 150, 105, 0.18), 0 4px 10px rgba(15, 23, 42, 0.06);
    z-index: 2;
}

.plan-highlight:hover {
    transform: scale(1.06) translateY(-2px);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}

.plan-head h3 {
    margin: 0 0 0.3rem;
    color: var(--dark);
}

.plan-tag {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 1.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--dark);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.plan-highlight .price-amount {
    color: var(--green);
}

.price-cadence {
    color: var(--muted);
    font-size: 0.92rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    flex-grow: 1;
}

.plan-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.65rem;
    color: var(--carbon);
    font-size: 0.93rem;
    line-height: 1.55;
}

.plan-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8l3 3 7-7' stroke='%23059669' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
}

/* ---------- FAQ ---------- */
.faq {
    padding: 5rem 0;
    background: var(--white);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.4rem;
    margin-bottom: 0.85rem;
    background: var(--white);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.faq-item[open] {
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    list-style: none;
    position: relative;
    padding-right: 2rem;
    font-size: 1rem;
}

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

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: var(--green);
    line-height: 1;
    transition: transform 220ms ease;
}

.faq-item[open] summary::after {
    content: "\2013";
    transform: translateY(-50%) rotate(0deg);
}

.faq-item p {
    margin: 0.75rem 0 0;
    color: var(--carbon);
    line-height: 1.65;
}

/* ---------- CTA Band ---------- */
.cta-band {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #0284c7 130%);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(500px circle at 90% 50%, rgba(255, 255, 255, 0.16), transparent 60%);
    pointer-events: none;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cta-text h2 {
    color: var(--white);
    margin: 0 0 0.55rem;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.cta-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    font-size: 1.02rem;
}

.cta-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.cta-band .btn-primary {
    background: var(--white);
    color: var(--green-deep);
    border-color: var(--white);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

.cta-band .btn-primary:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-light {
    color: var(--white);
}

.brand-light:hover {
    color: var(--white);
}

.brand-light .brand-dot {
    color: #34d399;
}

.footer-copy {
    color: #94a3b8;
    margin-top: 1rem;
    font-size: 0.93rem;
    line-height: 1.65;
    max-width: 360px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 1rem;
    font-family: var(--font-mono);
    font-weight: 500;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
    color: #94a3b8;
    font-size: 0.93rem;
}

.footer-col a {
    color: #cbd5e1;
    transition: color 160ms ease;
}

.footer-col a:hover {
    color: #34d399;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    color: #64748b;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal a {
    color: #94a3b8;
}

.footer-legal a:hover {
    color: #34d399;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .feature-grid,
    .pricing-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .plan-highlight {
        transform: none;
    }

    .plan-highlight:hover {
        transform: translateY(-3px);
    }

    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .primary-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 4.5rem 0 5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .header-cta .btn-ghost {
        display: none;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-row {
        gap: 1rem;
    }

    .client-logo {
        flex-basis: 45%;
    }
}

@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;
    }
}
