/* ============================================
   BIM LYNK - Revit Tools for Electrical Engineering
   Colors from LYNK Electrical UI: #20433e (teal), #F2F2F7, #1C1C1E
   ============================================ */

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

:root {
    --teal: #20433e;
    --teal-light: #2a5a53;
    --teal-dark: #162e2b;
    --teal-bg: #E8F0EE;
    --white: #FFFFFF;
    --black: #1C1C1E;
    --gray-light: #F2F2F7;
    --gray-mid: #8E8E93;
    --gray-dark: #3C3C43;
    --green: #34C759;
    --red: #FF3B30;
    --border: #E5E5EA;
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1rem; }

.text-teal { color: var(--teal); }
.text-green { color: var(--green); }

.section-label {
    display: inline-block; font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; color: var(--teal);
    margin-bottom: 12px;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-subtitle { color: var(--gray-dark); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 8px; font-family: var(--font-body);
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    border: 2px solid transparent; transition: all var(--transition);
}

.btn-teal { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(32,67,62,0.3); }

.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

.btn-white { background: var(--white); color: var(--teal); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); border-color: var(--white); transform: translateY(-2px); }

.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: #2db84d; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(52,199,89,0.3); }

/* --- Header --- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: all var(--transition);
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

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

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo-text { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--gray-dark); position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--teal); transition: width var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 8px; padding: 10px 24px !important; color: var(--white) !important; }
.nav-cta::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--black); transition: all var(--transition); }

.mobile-menu { display: none; position: fixed; top: 72px; left: 0; width: 100%; background: var(--white); padding: 24px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,0.1); z-index: 999; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 1rem; font-weight: 500; color: var(--gray-dark); border-bottom: 1px solid var(--gray-light); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--teal); }

/* --- Hero --- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding-top: 72px; background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-light) 100%);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -30%; right: -15%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%); border-radius: 50%;
}
.hero-content { position: relative; z-index: 2; max-width: 650px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 .highlight { color: var(--green); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 36px; max-width: 560px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: absolute; right: -5%; top: 50%; transform: translateY(-50%); width: 45%; max-width: 550px; z-index: 1; opacity: 0.15; }
.hero-visual img { width: 100%; }

/* --- Badge --- */
.badge {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-green { background: rgba(52,199,89,0.15); color: var(--green); }
.badge-orange { background: rgba(255,149,0,0.15); color: #FF9500; }
.badge-teal { background: rgba(32,67,62,0.1); color: var(--teal); }
.badge-red { background: rgba(255,59,48,0.15); color: #FF3B30; }

/* --- Sections --- */
.section { padding: 100px 0; }
.section-gray { background: var(--gray-light); }
.section-teal { background: var(--teal); color: var(--white); }
.section-teal .section-subtitle { color: rgba(255,255,255,0.7); }

/* --- Tool Cards --- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.tool-card {
    background: var(--white); border-radius: 12px; padding: 32px 24px;
    border: 1px solid var(--border); transition: all var(--transition); position: relative;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: transparent; }
.tool-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.tool-card:hover::before { transform: scaleX(1); }

.tool-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.tool-card h3 { margin-bottom: 0; font-size: 1.1rem; }
.tool-card p { color: var(--gray-dark); font-size: 0.9rem; margin-bottom: 0; }

/* Icon system — clean outline SVG icons like mepaia.ai */
.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--teal-bg);
    color: var(--teal);
    margin-bottom: 20px;
    transition: all var(--transition);
}
.tool-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}
.tool-card:hover .tool-icon {
    background: var(--teal);
    color: var(--white);
    transform: scale(1.05);
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--teal-bg);
    color: var(--teal);
    flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.stat-icon {
    display: inline-flex;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
}
.stat-icon svg { width: 28px; height: 28px; stroke-width: 1.8; }

/* --- Feature Section --- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-text h2 { margin-bottom: 16px; }
.feature-text p { color: var(--gray-dark); }
.feature-image { border-radius: 16px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.feature-image img { width: 100%; display: block; }

.feature-list { margin-top: 24px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.feature-list li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* --- Stats --- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }

/* --- CTA / Beta Signup --- */
.cta-section { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); padding: 80px 0; text-align: center; color: var(--white); }
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

.beta-form { display: flex; gap: 12px; max-width: 500px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.beta-form input {
    flex: 1; min-width: 240px; padding: 14px 20px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1); color: var(--white); font-family: var(--font-body); font-size: 0.95rem;
}
.beta-form input::placeholder { color: rgba(255,255,255,0.5); }
.beta-form input:focus { outline: none; border-color: var(--green); background: rgba(255,255,255,0.15); }

/* --- Pricing / Product Card --- */
.product-card {
    background: var(--white); border-radius: 16px; padding: 48px; max-width: 500px; margin: 0 auto;
    border: 2px solid var(--teal); box-shadow: 0 16px 48px rgba(0,0,0,0.08); text-align: center;
}
.product-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.product-card .price { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--teal); margin: 16px 0; }
.product-card .price span { font-size: 1rem; color: var(--gray-mid); font-weight: 400; }
.product-card ul { text-align: left; margin: 24px 0; }
.product-card li { padding: 8px 0; padding-left: 28px; position: relative; color: var(--gray-dark); }
.product-card li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* --- Footer --- */
.footer { background: var(--teal-dark); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text { color: var(--white); margin-bottom: 16px; font-size: 1.3rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { display: block; padding: 6px 0; font-size: 0.9rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }

/* --- Page Header --- */
.page-header { padding: 140px 0 60px; background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%); position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: -40%; right: -15%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%); border-radius: 50%; }
.page-header h1 { color: var(--white); margin-bottom: 16px; position: relative; z-index: 2; }
.page-header p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; position: relative; z-index: 2; }

/* --- Scroll Animations --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger-children > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.56s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.64s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.72s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.8s; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.88s; }
.stagger-children.visible > *:nth-child(13) { transition-delay: 0.96s; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 968px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero { min-height: auto; padding: 120px 0 80px; }
    .hero-visual { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-card { padding: 32px 24px; }
    .tool-card { padding: 24px 20px; }
    #custom-tool .container > div { grid-template-columns: 1fr !important; gap: 40px !important; }
    #custom-tool .container > div > div:last-child { padding: 28px !important; }
    #custom-tool .container > div > div:first-child > div:nth-child(3) { grid-template-columns: 1fr !important; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .hero { padding: 100px 0 60px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .tools-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .page-header { padding: 100px 0 40px; }
    .page-header h1 { font-size: 1.6rem; }
    .section-header { margin-bottom: 40px; }
    .beta-form { flex-direction: column; }
    .beta-form input { min-width: auto; width: 100%; }
    .product-card { padding: 28px 20px; }
    .product-card .price { font-size: 2rem; }
    .feature-list li { font-size: 0.85rem; }
    .container { padding: 0 16px; }
}

/* --- Pricing Styles --- */
.price-old { text-decoration: line-through; color: var(--gray-mid); font-size: 1rem; font-weight: 400; }
.price-badge { display: inline-block; background: var(--green); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; }
.price-highlight { border: 3px solid var(--green); position: relative; }
.price-highlight::after { content: 'Aanbevolen'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--green); color: white; padding: 4px 16px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }

.product-separator {
    text-align: center; padding: 48px 0; position: relative;
}
.product-separator::before {
    content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: var(--border);
}
.product-separator span {
    position: relative; background: var(--white); padding: 0 24px; font-size: 0.9rem; color: var(--gray-mid); font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .hero-buttons { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .tools-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .beta-form { flex-direction: column; }
    .beta-form input { min-width: auto; }
}
