/* ============================================================
   SHREEWIN — CORE STYLES
   Premium, clean, white-background design system.
   ============================================================ */

:root {
    --color-bg: #ffffff;
    --color-bg-soft: #f8f9fb;
    --color-text: #111318;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-primary: #14532d;
    --color-primary-hover: #0f4023;
    --color-primary-soft: #ecf5ef;
    --color-accent: #b98a2f;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(17, 19, 24, 0.06);
    --shadow-md: 0 8px 24px rgba(17, 19, 24, 0.08);
    --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-soft); }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head p { color: var(--color-muted); }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    text-decoration: none;
    min-height: 44px;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; }

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

.btn-play {
    background: var(--color-accent);
    color: #fff;
    font-size: 1rem;
    padding: 14px 32px;
    letter-spacing: 0.04em;
}
.btn-play:hover { background: #a2781f; color: #fff; }

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

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

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-text); }
.brand:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
}
.site-nav a:hover { background: var(--color-bg-soft); text-decoration: none; }
.site-nav .nav-login { border: 1px solid var(--color-border); margin-left: 8px; }
.site-nav .nav-register { background: var(--color-primary); color: #fff; }
.site-nav .nav-register:hover { background: var(--color-primary-hover); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    content: "";
    transition: transform 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.hero p.lead { color: var(--color-muted); font-size: 1.08rem; max-width: 480px; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-note { font-size: 0.85rem; color: var(--color-muted); }
.hero-visual img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 26px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.card p { color: var(--color-muted); font-size: 0.93rem; }

.card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 1.15rem;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 14px;
}

/* ---------- App info sheet ---------- */
.app-sheet {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}
.app-sheet-visual { background: var(--color-bg-soft); display: flex; align-items: center; justify-content: center; padding: 32px; }
.app-sheet > * { min-width: 0; }
.app-sheet-visual img { max-width: min(300px, 100%); height: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.app-sheet-body { padding: 36px; }
.app-sheet-body h3 { font-size: 1.4rem; margin-bottom: 10px; }
.app-sheet-body > p { color: var(--color-muted); margin-bottom: 22px; }

.app-details { width: 100%; border-collapse: collapse; margin-bottom: 24px; table-layout: fixed; }
.app-details th, .app-details td { overflow-wrap: break-word; }
.app-details th, .app-details td { text-align: left; padding: 10px 4px; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
.app-details th { color: var(--color-muted); font-weight: 500; width: 42%; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 12px; background: var(--color-bg); }
.faq-item button {
    width: 100%;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item button::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--color-muted);
    transition: transform 0.2s ease;
}
.faq-item.is-open button::after { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 20px 18px; color: var(--color-muted); font-size: 0.95rem; }
.faq-item.is-open .faq-answer { display: block; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
    background: #0e1512;
    color: #cbd5d1;
    padding: 64px 0 32px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.footer-grid > * { min-width: 0; }
.footer-brand p { color: #93a29c; font-size: 0.9rem; margin: 12px 0 20px; max-width: 280px; }
.footer-brand .brand span { color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { color: #cbd5d1; font-size: 0.9rem; }
.site-footer ul a:hover { color: #fff; }

.footer-contact li { color: #93a29c; font-size: 0.88rem; margin-bottom: 9px; overflow-wrap: anywhere; }
.footer-contact a { color: #cbd5d1; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: #93a29c;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--color-border); }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.page-hero p { color: var(--color-muted); max-width: 620px; }
.page-hero-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.page-hero-brand img { display: block; }
.page-hero-brand span { font-weight: 700; font-size: 1.1rem; }
.page-hero .hero-ctas { margin-top: 22px; margin-bottom: 0; }

/* ---------- Eye-catching hero brand block: logo + CTAs first ---------- */
.hero-brand-block { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
.hero-logo-badge {
    width: 76px; height: 76px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    padding: 3px; box-shadow: 0 10px 30px rgba(20, 83, 45, 0.28);
    animation: heroBadgePulse 2.8s ease-in-out infinite;
}
.hero-logo-badge-inner {
    width: 100%; height: 100%; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center; padding: 10px;
}
.hero-logo-badge-inner img { width: 100%; height: 100%; object-fit: contain; }
@keyframes heroBadgePulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(20, 83, 45, 0.28), 0 0 0 0 rgba(185, 138, 47, 0.35); }
    50% { box-shadow: 0 10px 30px rgba(20, 83, 45, 0.28), 0 0 0 10px rgba(185, 138, 47, 0); }
}
.hero-ctas-top { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas-top .btn { font-size: 1.02rem; padding: 14px 30px; font-weight: 700; }
.btn-glow {
    background: linear-gradient(135deg, var(--color-primary), #1c6b3a);
    box-shadow: 0 8px 20px rgba(20, 83, 45, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 83, 45, 0.45); text-decoration: none; }
@media (max-width: 640px) {
    .hero-brand-block { align-items: center; text-align: center; width: 100%; }
    .hero-ctas-top { justify-content: center; width: 100%; }
    .hero-ctas-top .btn { flex: 1; text-align: center; }
}

.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose p, .prose li { color: #374151; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; }

.placeholder-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.88rem;
    color: #92400e;
    margin: 20px 0;
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
