/* assets/style.css */

/* ------------ Base / reset-ish ------------ */

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background-color: var(--page-bg);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 16px;
}

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

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

h1, h2, h3 {
    color: var(--text-heading);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.03em;
}

p {
    color: var(--text-main);
    line-height: 1.5;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.section-head {
    max-width: 640px;
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section-head p {
    font-size: 1rem;
    color: var(--text-dim);
}

/* Theme variables */
:root[data-theme="light"] {
    --page-bg: #ffffff;
    --text-main: #1a1a1a;
    --text-heading: #0f0f0f;
    --text-dim: #666;

    --accent-primary: #5b2bcd;   /* violet */
    --accent-secondary: #19a3a7; /* teal */

    --bg-soft: #fafafb;
    --border-soft: #e5e6eb;

    --radius-card: 0.75rem;
    --radius-button: 0.5rem;
    --shadow-card: 0 16px 32px rgba(15, 23, 42, 0.06);

    --hero-bg-start: #ffffff;
    --hero-bg-end: #f7f7ff;

    --card-bg: #ffffff;
    --card-border: #e5e6eb;

    --header-bg: #ffffffcc;
    --header-border: #e5e6eb;
    --burger-line: #1a1a1a;
}

:root[data-theme="dark"] {
    --page-bg: #0f0f0f;
    --text-main: #f5f5f5;
    --text-heading: #ffffff;
    --text-dim: #aaaaaa;

    --accent-primary: #5b2bcd;
    --accent-secondary: #19a3a7;

    --bg-soft: #1a1a1a;
    --border-soft: #2a2a2a;

    --radius-card: 0.75rem;
    --radius-button: 0.5rem;
    --shadow-card: 0 24px 48px rgba(0,0,0,0.7);

    --hero-bg-start: #1a1a1a;
    --hero-bg-end: #0f0f0f;

    --card-bg: #1a1a1a;
    --card-border: #2a2a2a;

    --header-bg: #0f0f0fcc;
    --header-border: #2a2a2a;
    --burger-line: #f5f5f5;
}

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

.site-header {
    border-bottom: 1px solid var(--header-border);
    background-color: var(--header-bg);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.logo-img {
    display: block;
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

@media(min-width:768px){
    .logo-img {
        width: 3.5rem;
        height: 3.5rem;
    }
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: -0.03em;
}

.brand-tag {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.main-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

.main-nav a.cta-link {
    color: var(--accent-primary);
    font-weight: 600;
}

.theme-toggle {
    border: 1px solid var(--border-soft);
    background: var(--card-bg);
    color: var(--text-main);
    padding: 0.6rem 0.6rem;
    border-radius: var(--radius-button);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    min-width: 2rem;
}

.theme-toggle .theme-icon {
    font-size: 1rem;
    line-height: 1;
}

@media(min-width:768px){
    .theme-toggle {
        margin-left: 1rem;
    }
}

.nav-toggle {
    border: 1px solid var(--border-soft);
    background: var(--card-bg);
    padding: 0.6rem 0.6rem;
    border-radius: var(--radius-button);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 2rem;
    width: 2rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--burger-line);
    border-radius: 1px;
}

/* show nav on desktop */
@media(min-width: 768px) {
    .main-nav {
        display: flex;
    }
    .nav-toggle {
        display: none;
    }
}

/* mobile nav open state */
.main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 1.25rem;
    top: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-card);
    padding: 1rem;
    z-index: 200;
}

@media(min-width:768px){
    .main-nav.open {
        position: static;
        flex-direction: row;
        border: none;
        box-shadow: none;
        padding: 0;
    }
}

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

.section-hero {
    background: radial-gradient(circle at 10% 10%, var(--hero-bg-start) 0%, var(--hero-bg-end) 60%);
    border-bottom: 1px solid var(--border-soft);
    padding: 4rem 0 3rem;
}

.hero-inner {
    max-width: 800px;
}

.section-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--text-main);
    max-width: 640px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-button);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #fff;
    box-shadow: 0 20px 30px rgba(91, 43, 205, 0.22);
}

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

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-main);
    border: 2px solid var(--border-soft);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.hero-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 640px;
}

.trust-badge {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
    padding: 1rem 1rem;
}

.trust-badge strong {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.trust-badge span {
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.4;
}

@media(min-width:600px){
    .hero-trust {
        grid-template-columns: repeat(3,1fr);
    }
}

/* ------------ Sections shared styles ------------ */

section {
    padding: 4rem 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media(min-width:768px){
    .cards-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-list {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
}

.card-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.card-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 600;
}

/* ------------ Work section tweaks ------------ */

.section-work {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.work-card .work-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(91, 43, 205, 0.08);
    color: var(--accent-primary);
    padding: 0.3rem 0.5rem;
    border-radius: 0.4rem;
    margin-bottom: 0.75rem;
}

.work-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: var(--text-heading);
}

.tech-line {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
    border-top: 1px solid var(--border-soft);
    margin-top: 1rem;
    padding-top: 0.75rem;
}

/* ------------ Process section ------------ */

.section-process {
    background: var(--page-bg);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media(min-width:768px){
    .process-grid {
        grid-template-columns: repeat(4,1fr);
    }
}

.process-step {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1.25rem;
}

.process-step h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-main);
}

.step-num {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 16px 32px rgba(25, 163, 167, 0.22);
}

/* ------------ About section ------------ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media(min-width:768px){
    .about-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

.about-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

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

.site-footer {
    background: #0f0f0f;
    color: #fff;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--border-soft);
    margin-top: 2rem;
}

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

@media(min-width:900px){
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-contact h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-lead {
    color: #d1d1d1;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

.contact-form {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: var(--radius-card);
    box-shadow: 0 24px 48px rgba(0,0,0,0.6);
    padding: 1.5rem;
    max-width: 28rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
    background: #0f0f0f;
    color: #fff;
    border: 1px solid #3a3a3a;
    border-radius: var(--radius-button);
    padding: 0.75rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.4;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 0;
    border-color: transparent;
}

.contact-form .btn-primary {
    width: 100%;
    text-align: center;
    border: 0;
    cursor: pointer;
    margin-top: 0.5rem;
    box-shadow: 0 24px 48px rgba(91, 43, 205, 0.4);
    font-family: inherit;
}

.form-footnote {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
    line-height: 1.4;
}
.form-footnote a {
    color: #fff;
    text-decoration: underline;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

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

.footer-smallprint {
    font-size: 0.9rem;
    color: #cfcfcf;
    line-height: 1.5;
}

.footer-legal {
    font-size: 0.8rem;
    color: #777;
}

/* thank you page styling */
.thankyou-body {
    background: radial-gradient(circle at 10% 10%, var(--hero-bg-start) 0%, var(--hero-bg-end) 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.thankyou-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 2rem;
    max-width: 400px;
    text-align: center;
}

.thankyou-wrapper h1 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.thankyou-wrapper p {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}