/* Digitiye Main Website - Premium UI Layer */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500;1,600&family=DM+Sans:wght@400;500&family=DM+Mono:wght@400&display=swap');

:root {
    --color-bg: #FAFAF8;
    --color-bg-section: #F2F0EC;
    --color-surface: #FFFFFF;
    --color-surface-soft: #F7F5F1;
    --color-text-primary: #0A0A0A;
    --color-text-muted: #6B6B6B;
    --color-accent: #B8860B;
    --color-border: #E4E2DC;
    --color-border-strong: rgba(10, 10, 10, 0.16);
    --shadow-soft: 0 16px 44px rgba(10, 10, 10, 0.08);
    --shadow-medium: 0 24px 60px rgba(10, 10, 10, 0.14);

    --font-display: 'Lora', serif;
    --font-title: 'Lora', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body.brand-body {
    background:
        radial-gradient(circle at 8% 8%, rgba(184, 134, 11, 0.09), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(10, 10, 10, 0.05), transparent 38%),
        var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    min-height: 100%;
    line-height: 1.65;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.font-title {
    font-family: var(--font-title);
    font-weight: 500;
}

.font-mono {
    font-family: var(--font-mono);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* Motion */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.site-nav {
    transition: padding 0.35s ease;
}

.site-nav .nav-shell {
    margin-top: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.site-nav.is-scrolled .nav-shell {
    background: rgba(0, 0, 0, 0.76);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.brand-mark {
    letter-spacing: -0.02em;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #fff;
    color: #000;
}

/* Hero */
.hero-section {
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

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

.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 35%, rgba(184, 134, 11, 0.12), transparent 44%),
        linear-gradient(to bottom, rgba(250, 250, 248, 0.45), rgba(250, 250, 248, 0.8));
}

.hero-kicker {
    color: var(--color-accent);
}

.hero-heading {
    text-shadow: 0 18px 38px rgba(10, 10, 10, 0.08);
    letter-spacing: -0.02em;
    line-height: 0.95;
}

.hero-subtitle {
    font-size: 1.15rem;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-family: var(--font-mono);
    font-size: 11px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hero-cta--primary {
    background: var(--color-text-primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.hero-cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--color-accent);
}

.hero-cta--ghost {
    color: var(--color-text-primary);
    border-color: var(--color-border-strong);
    background: rgba(255, 255, 255, 0.66);
}

.hero-cta--ghost:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.hero-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-proof span {
    border: 1px solid rgba(10, 10, 10, 0.16);
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: rgba(255, 255, 255, 0.75);
}

/* Conversion strip */
.conversion-strip {
    background: linear-gradient(to bottom, #fff, rgba(250, 250, 248, 0.7));
}

.conversion-card {
    border: 1px solid rgba(10, 10, 10, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 241, 0.94));
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(10, 10, 10, 0.06);
}

.conversion-kicker {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 10px;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.conversion-title {
    font-size: clamp(24px, 2.1vw, 30px);
    line-height: 1.2;
    margin-bottom: 10px;
}

.conversion-text {
    color: var(--color-text-muted);
    font-size: 15px;
}

/* Collection */
.collection-section {
    background: linear-gradient(to bottom, #fff, var(--color-surface-soft));
}

.section-head {
    border-bottom: 1px solid rgba(10, 10, 10, 0.1);
    padding-bottom: 20px;
}

.section-subtext {
    font-size: 1.05rem;
}

.template-row {
    align-items: center;
}

.template-visual {
    border-radius: 20px;
    border: 1px solid rgba(10, 10, 10, 0.1);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.template-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent 36%);
    pointer-events: none;
    z-index: 1;
}

.template-image {
    width: 100%;
    position: relative;
    z-index: 0;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s ease;
}

.template-row:hover .template-image {
    transform: scale(1.035);
    filter: saturate(1.04);
}

.template-copy p {
    line-height: 1.75;
}

.template-fit {
    opacity: 0.8;
}

.template-link {
    position: relative;
    overflow: hidden;
    border-color: rgba(10, 10, 10, 0.22);
    background: rgba(255, 255, 255, 0.72);
}

.template-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.template-link:hover::after {
    transform: translateX(4px);
}

/* Pricing */
.pricing-section {
    background:
        radial-gradient(circle at 10% 0%, rgba(184, 134, 11, 0.08), transparent 30%),
        var(--color-bg-section);
}

.pricing-card {
    border-radius: 18px;
    border-color: rgba(10, 10, 10, 0.08);
    box-shadow: 0 12px 36px rgba(10, 10, 10, 0.08);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88));
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(184, 134, 11, 0.36);
    box-shadow: 0 22px 50px rgba(10, 10, 10, 0.14);
}

.pricing-card--featured {
    box-shadow: 0 28px 60px rgba(10, 10, 10, 0.16);
    border-width: 1px;
}

.pricing-badge {
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(184, 134, 11, 0.35);
}

.pricing-feature span {
    border-radius: 999px;
    flex-shrink: 0;
}

.pricing-cta {
    border-radius: 999px;
    transition: all 0.3s ease;
}

.pricing-cta:hover {
    border-color: var(--color-text-primary);
}

.pricing-cta--featured {
    box-shadow: 0 10px 24px rgba(10, 10, 10, 0.22);
}

.pricing-note {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
}

.pricing-target {
    min-height: 54px;
}

/* Lead */
.lead-section {
    background: linear-gradient(to bottom, #fff, var(--color-surface-soft));
}

.lead-wrap {
    align-items: stretch;
}

.lead-points li {
    position: relative;
    padding-left: 22px;
}

.lead-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-accent);
}

.lead-alt {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lead-form {
    position: relative;
    border: 1px solid rgba(10, 10, 10, 0.1);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 241, 0.92));
    box-shadow: 0 20px 48px rgba(10, 10, 10, 0.1);
    padding: clamp(20px, 3vw, 30px);
}

.lead-field {
    margin-bottom: 14px;
}

.lead-field label {
    display: block;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 10px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.lead-field input,
.lead-field select,
.lead-field textarea {
    width: 100%;
    border: 1px solid rgba(10, 10, 10, 0.14);
    background: rgba(255, 255, 255, 0.86);
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--color-text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
    border-color: rgba(184, 134, 11, 0.64);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.16);
    outline: none;
}

.lead-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lead-submit {
    width: 100%;
    min-height: 50px;
    border: 1px solid transparent;
    background: var(--color-text-primary);
    color: #fff;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    margin-top: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.lead-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    background: var(--color-accent);
}

.lead-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lead-help {
    margin-top: 10px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.lead-help[data-state="loading"] {
    color: #8a6a1f;
}

.lead-help[data-state="success"] {
    color: #1f7a38;
}

.lead-help[data-state="error"] {
    color: #9f1c1c;
}

.lead-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* FAQ */
.faq-section {
    background: #fff;
}

.faq-item {
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 12px;
    padding: 0 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(249, 247, 243, 0.62));
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(184, 134, 11, 0.4);
    box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
}

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

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(184, 134, 11, 0.22), transparent 42%),
        #0a0a0a;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-footer > .container {
    position: relative;
    z-index: 2;
}

.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

/* Responsive */
@media (max-width: 900px) {
    .site-nav .nav-shell {
        padding: 10px 14px;
    }

    .nav-cta {
        padding: 8px 12px;
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 96px;
        padding-bottom: 56px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-heading {
        line-height: 1.02;
    }

    .hero-cta-row {
        flex-direction: column;
    }

    .hero-cta {
        width: min(100%, 320px);
    }

    .hero-proof {
        margin-top: 16px;
    }

    .template-visual {
        border-radius: 14px;
    }

    .conversion-card {
        padding: 20px;
    }

    .pricing-card,
    .pricing-card--featured {
        transform: none !important;
        padding: 30px 24px;
    }

    .faq-item {
        padding: 0 14px;
    }

    .lead-field-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .template-image,
    .template-link,
    .pricing-card,
    .hero-cta,
    .site-nav .nav-shell {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}
