*{margin:0;padding:0;box-sizing:border-box}
:root{--red:#E31937;--dark:#111;--darker:#0a0a0a;--gray:#1a1a1a;--light:#f8f8f8;--white:#fff}
html{scroll-behavior:smooth;font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;color:var(--dark);line-height:1.7;background:var(--white);text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}
img,svg{max-width:100%;height:auto;display:block}

/* GPU acceleration for animated elements */
.fade-in{opacity:0;transform:translateY(20px);transition:opacity .5s,transform .5s;will-change:opacity,transform}
.fade-in.visible{opacity:1;transform:translateY(0)}

/* NAV */
nav{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(10,10,10,.95);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);padding:.8rem 0;transition:box-shadow .3s;contain:layout style}
nav.scrolled{box-shadow:0 2px 20px rgba(0,0,0,.3)}
.container{max-width:1200px;margin:0 auto;padding:0 1.5rem}
.nav-flex{display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:.5rem;color:var(--white);text-decoration:none;font-size:1.3rem}
.logo b{color:var(--red)}
.logo-horse{flex-shrink:0}
.nav-links{display:flex;align-items:center;gap:1.5rem}
.nav-links a{color:rgba(255,255,255,.8);text-decoration:none;font-size:.9rem;transition:color .3s;padding:.4rem .2rem;min-height:44px;display:flex;align-items:center}
.nav-links a:hover,.nav-links a:active{color:var(--red)}
.btn-nav{background:var(--red);color:var(--white)!important;padding:.5rem 1.2rem;border-radius:6px;font-weight:600;min-height:44px}
.btn-nav:hover{background:#c41530}
.menu-btn{display:none;background:none;border:none;color:var(--white);font-size:1.5rem;cursor:pointer;min-width:48px;min-height:48px;-webkit-tap-highlight-color:transparent}

/* HERO */
#hero{background:linear-gradient(135deg,var(--darker) 0%,#1a0508 50%,var(--dark) 100%);padding:8rem 0 4rem;min-height:100vh;display:flex;align-items:center}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.hero-text{color:var(--white)}
.hero-text h1{font-size:2.8rem;line-height:1.2;margin-bottom:1.5rem}
.red{color:var(--red)}
.hero-text p{font-size:1.1rem;color:rgba(255,255,255,.8);margin-bottom:2rem;max-width:500px}
.hero-btns{display:flex;gap:1rem;margin-bottom:2rem;flex-wrap:wrap}
.btn{display:inline-block;background:var(--red);color:var(--white);padding:.8rem 2rem;border-radius:8px;text-decoration:none;font-weight:700;border:2px solid var(--red);transition:all .3s;cursor:pointer;font-size:1rem;min-height:48px;-webkit-tap-highlight-color:transparent}
.btn:hover{background:#c41530;border-color:#c41530;transform:translateY(-2px)}
.btn:active{transform:translateY(0);transition:transform .1s}
.btn-outline{background:transparent;border-color:var(--white);color:var(--white)}
.btn-outline:hover{background:var(--white);color:var(--dark)}
.btn-lg{padding:1rem 2.5rem;font-size:1.1rem}
.btn-full{width:100%;text-align:center}
.trust-badges{display:flex;gap:1.5rem;flex-wrap:wrap;font-size:.9rem;color:rgba(255,255,255,.7)}
.trust-badges span{display:flex;align-items:center;gap:.3rem}
.horse-hero{width:100%;max-width:400px;margin:0 auto;display:block;filter:drop-shadow(0 0 40px rgba(227,25,55,.3));animation:float 3s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-15px)}}

/* SECTIONS */
.section{padding:5rem 0}
.bg-dark{background:var(--darker);color:var(--white)}
h2{font-size:2rem;text-align:center;margin-bottom:1rem}
h2.light{color:var(--white)}
.section-desc{text-align:center;max-width:700px;margin:0 auto 3rem;color:#666;font-size:1.05rem;line-height:1.8}
.section-desc.light{color:rgba(255,255,255,.7)}

/* CARDS GRID */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.card{background:var(--gray);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:2rem;transition:transform .3s,box-shadow .3s;contain:content}
.card:hover{transform:translateY(-5px);box-shadow:0 10px 30px rgba(227,25,55,.15);border-color:var(--red)}
.card-icon{font-size:2.5rem;margin-bottom:1rem}
.card h3{color:var(--red);margin-bottom:.8rem;font-size:1.1rem}
.card p{color:rgba(255,255,255,.7);font-size:.95rem}

/* PLATFORMS */
.platform-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
.plat{background:var(--light);border:2px solid #eee;border-radius:10px;padding:1.5rem;text-align:center;transition:all .3s}
.plat:hover{border-color:var(--red);box-shadow:0 5px 20px rgba(227,25,55,.1)}
.plat-name{display:block;font-weight:700;font-size:1.1rem;color:var(--dark);margin-bottom:.3rem}
.plat-desc{color:#666;font-size:.85rem}

/* WHY */
.why-item{text-align:center;padding:1.5rem}
.why-num{font-size:2.5rem;font-weight:900;color:var(--red);margin-bottom:.5rem}
.why-item h3{margin-bottom:.5rem;font-size:1rem}
.why-item p{color:rgba(255,255,255,.6);font-size:.9rem}

/* ILLUSTRATIONS */
.section-illust{display:block;max-width:600px;margin:2rem auto 0;opacity:.9}
.step-icon{display:block;margin:0 auto .5rem;width:70px;height:70px}
.cta-grid{display:grid;grid-template-columns:1fr auto;gap:2rem;align-items:center}
.cta-illust{width:200px;height:200px;opacity:.85;animation:float 3s ease-in-out infinite}
.contact-illust{display:block;max-width:250px;margin:0 auto 1.5rem;opacity:.85}
@media(max-width:768px){
.section-illust{max-width:100%}
.cta-grid{grid-template-columns:1fr;text-align:center}
.cta-illust{width:150px;height:150px;margin:0 auto}
.step-icon{width:56px;height:56px}
.contact-illust{max-width:200px}
}

/* PROCESS STEPS */
.process-steps{display:flex;align-items:center;justify-content:center;gap:0;flex-wrap:wrap;max-width:1000px;margin:0 auto}
.process-step{text-align:center;flex:1;min-width:150px;padding:1.5rem 1rem;position:relative}
.step-num{width:56px;height:56px;background:var(--red);color:var(--white);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:900;margin:0 auto 1rem;box-shadow:0 4px 15px rgba(227,25,55,.3)}
.process-step h3{font-size:1rem;margin-bottom:.5rem;color:var(--dark)}
.process-step p{color:#666;font-size:.85rem;line-height:1.6}
.step-line{width:40px;height:2px;background:var(--red);opacity:.4;flex-shrink:0;align-self:flex-start;margin-top:42px}
@media(max-width:768px){
.process-steps{flex-direction:column;gap:0}
.step-line{width:2px;height:30px;margin:0 auto}
}

/* PRICING */
.price-card{background:var(--white);border:2px solid #eee;border-radius:16px;padding:2.5rem;text-align:center;transition:all .3s;position:relative}
.price-card:hover{border-color:var(--red);transform:translateY(-5px)}
.price-card.popular{border-color:var(--red);transform:scale(1.05);box-shadow:0 15px 40px rgba(227,25,55,.15)}
.price-badge{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--red);color:var(--white);padding:.3rem 1.2rem;border-radius:20px;font-size:.8rem;font-weight:700}
.price-name{font-size:1.2rem;font-weight:700;margin-bottom:.5rem;color:var(--dark)}
.price-amount{font-size:2.8rem;font-weight:900;color:var(--red);margin-bottom:1.5rem}
.price-amount span{font-size:.9rem;color:#999;font-weight:400}
.price-card ul{list-style:none;margin-bottom:2rem;text-align:left}
.price-card li{padding:.5rem 0;border-bottom:1px solid #f0f0f0;color:#555;font-size:.95rem}
.price-card li::before{content:"✓ ";color:var(--red);font-weight:700}

/* FAQ */
.faq-list{max-width:800px;margin:0 auto}
details{border:1px solid rgba(255,255,255,.1);border-radius:10px;margin-bottom:1rem;overflow:hidden}
summary{padding:1.2rem 1.5rem;cursor:pointer;font-weight:600;font-size:1rem;color:var(--white);background:var(--gray);transition:background .3s}
summary:hover{background:rgba(227,25,55,.1)}
details[open] summary{background:var(--red);color:var(--white)}
details p{padding:1.2rem 1.5rem;color:rgba(255,255,255,.7);background:var(--gray);line-height:1.8}

/* CTA */
.cta-section{background:linear-gradient(135deg,var(--red),#8b0000);text-align:center;color:var(--white)}
.cta-content h2{color:var(--white);font-size:2.2rem;margin-bottom:1rem}
.cta-content p{margin-bottom:2rem;font-size:1.1rem;opacity:.9}
.cta-section .btn{background:var(--white);color:var(--red);border-color:var(--white)}
.cta-section .btn:hover{background:var(--dark);color:var(--white);border-color:var(--dark)}

/* CONTACT */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
.contact-info{color:rgba(255,255,255,.8)}
.contact-info h3{color:var(--red);font-size:1.5rem;margin-bottom:1rem}
.contact-item{padding:.5rem 0;font-size:.95rem}
.contact-form{display:flex;flex-direction:column;gap:1rem}
.contact-form input,.contact-form select,.contact-form textarea{padding:.8rem 1rem;border:1px solid rgba(255,255,255,.15);border-radius:8px;background:var(--gray);color:var(--white);font-size:1rem;font-family:inherit}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:none;border-color:var(--red)}
.contact-form select option{background:var(--dark)}

/* FOOTER */
footer{background:var(--dark);color:rgba(255,255,255,.6);padding:3rem 0 2rem;border-top:1px solid rgba(255,255,255,.05)}
.footer-inner{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:2rem}
.footer-brand p{margin-top:.5rem;font-size:.85rem}
.footer-links h4{color:var(--red);margin-bottom:.8rem;font-size:.95rem}
.footer-links a{display:block;color:rgba(255,255,255,.5);text-decoration:none;font-size:.85rem;padding:.2rem 0;transition:color .3s}
.footer-links a:hover{color:var(--red)}

/* MOBILE */
@media(max-width:1024px){
.grid-3{grid-template-columns:repeat(2,1fr)}
.grid-4{grid-template-columns:repeat(2,1fr)}
.platform-grid{grid-template-columns:repeat(2,1fr)}
.articles-grid{grid-template-columns:repeat(2,1fr)}
.hero-text h1{font-size:2.2rem}
}
@media(max-width:768px){
.menu-btn{display:block}
.nav-links{display:none;position:absolute;top:100%;left:0;right:0;background:var(--darker);flex-direction:column;padding:1.5rem env(safe-area-inset-right) 1.5rem env(safe-area-inset-left);gap:.5rem}
.nav-links.open{display:flex}
.nav-links a{padding:.8rem .5rem;min-height:48px;font-size:1rem}
.hero-grid{grid-template-columns:1fr;text-align:center}
.hero-text p{margin:0 auto 2rem}
.hero-btns{justify-content:center;gap:.8rem}
.hero-btns .btn{width:100%;text-align:center;padding:1rem;font-size:1rem}
.trust-badges{justify-content:center;font-size:.8rem;gap:1rem}
.horse-hero{max-width:200px}
.section{padding:3.5rem 0}
.grid-3{grid-template-columns:1fr}
.grid-4{grid-template-columns:1fr 1fr}
.articles-grid{grid-template-columns:1fr}
.price-card.popular{transform:scale(1)}
.price-card{padding:1.8rem}
.article-modal-content{padding:1.5rem;margin:.5rem;border-radius:12px}
.article-modal{padding:.5rem}
.contact-grid{grid-template-columns:1fr}
.contact-form input,.contact-form select,.contact-form textarea{font-size:16px;padding:1rem;min-height:48px}
.contact-form select{-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center}
.footer-inner{grid-template-columns:1fr;gap:1.5rem}
h2{font-size:1.5rem}
.section-desc{font-size:.95rem;margin-bottom:2rem}
.hero-text h1{font-size:1.8rem}
.platform-grid{grid-template-columns:repeat(2,1fr);gap:1rem}
.plat{padding:1rem}
.card{padding:1.5rem}
.card-icon{font-size:2rem}
.why-item{padding:1rem}
.faq-list{margin:0 -.5rem}
details{border-radius:8px}
summary{padding:1rem;font-size:.95rem}
details p{padding:1rem;font-size:.9rem}
.float-line{width:50px;height:50px;bottom:1rem;right:1rem}
.back-to-top{bottom:4.5rem;right:1rem;width:40px;height:40px}
.theme-toggle{top:4.5rem;right:1rem;width:38px;height:38px}
.container{padding:0 1rem}
}
/* ARTICLES */
.articles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.article-card{background:var(--white);border:2px solid #eee;border-radius:12px;padding:2rem;transition:all .3s;cursor:pointer;display:flex;flex-direction:column}
.article-card:hover{border-color:var(--red);transform:translateY(-5px);box-shadow:0 10px 30px rgba(227,25,55,.1)}
.article-badge{display:inline-block;background:rgba(227,25,55,.1);color:var(--red);padding:.2rem .8rem;border-radius:20px;font-size:.75rem;font-weight:700;margin-bottom:.8rem;width:fit-content}
.article-card h3{font-size:1.1rem;color:var(--dark);margin-bottom:.8rem;line-height:1.4}
.article-card p{color:#666;font-size:.9rem;line-height:1.7;margin-bottom:1rem;flex:1}
.article-meta{display:flex;gap:1rem;font-size:.8rem;color:#999;flex-wrap:wrap}
.article-meta span{display:flex;align-items:center;gap:.3rem}
@media(max-width:1024px){.articles-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:768px){
.articles-grid{grid-template-columns:1fr;gap:1.2rem}
.article-card{padding:1.5rem}
.article-card h3{font-size:1rem}
.article-card p{font-size:.85rem;line-height:1.6;-webkit-line-clamp:3;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
}

/* ARTICLE MODAL */
.article-modal{display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:200;background:rgba(0,0,0,.7);backdrop-filter:blur(5px);overflow-y:auto;padding:2rem}
.article-modal.active{display:flex;align-items:flex-start;justify-content:center}
.article-modal-content{background:var(--white);max-width:800px;width:100%;border-radius:16px;padding:3rem;position:relative;margin:2rem auto}
.article-modal-close{position:absolute;top:1rem;right:1.5rem;background:none;border:none;font-size:2rem;cursor:pointer;color:#999;transition:color .3s}
.article-modal-close:hover{color:var(--red)}
.article-modal-content h2{font-size:1.8rem;text-align:left;color:var(--dark);margin-bottom:1rem;line-height:1.4}
.article-modal-meta{display:flex;gap:1.5rem;font-size:.85rem;color:#999;margin-bottom:2rem;flex-wrap:wrap}
.article-modal-body{color:#444;font-size:1rem;line-height:2;white-space:pre-line}

/* LIGHT MODE ARTICLES */
body.light-mode .article-card{background:var(--white);border-color:#eee}
body.light-mode .article-modal-content{background:var(--white)}

/* BLOG FILTER */
.blog-filter{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}
.filter-btn{background:rgba(255,255,255,.1);color:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.15);padding:.5rem 1.2rem;border-radius:20px;cursor:pointer;font-size:.9rem;transition:all .3s;font-family:inherit}
.filter-btn:hover{border-color:var(--red);color:var(--white)}
.filter-btn.active{background:var(--red);color:var(--white);border-color:var(--red)}

/* FLOATING LINE BUTTON */
.float-line{position:fixed;bottom:1.5rem;right:1.5rem;z-index:99;background:#06C755;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 15px rgba(6,199,85,.4);transition:transform .3s,box-shadow .3s;text-decoration:none}
.float-line:hover{transform:scale(1.1);box-shadow:0 6px 25px rgba(6,199,85,.5)}

/* BACK TO TOP */
.back-to-top{position:fixed;bottom:5rem;right:1.5rem;z-index:99;background:var(--red);color:var(--white);width:44px;height:44px;border-radius:50%;border:none;font-size:1.2rem;cursor:pointer;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s,transform .3s;box-shadow:0 4px 12px rgba(227,25,55,.3)}
.back-to-top.show{opacity:1;visibility:visible}
.back-to-top:hover{transform:translateY(-3px);box-shadow:0 6px 20px rgba(227,25,55,.4)}

/* THEME TOGGLE */
.theme-toggle{position:fixed;top:5rem;right:1.5rem;z-index:99;background:var(--gray);border:2px solid rgba(255,255,255,.15);color:var(--white);width:42px;height:42px;border-radius:50%;font-size:1.2rem;cursor:pointer;transition:all .3s;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,.2)}
.theme-toggle:hover{border-color:var(--red);transform:scale(1.1)}
.theme-icon{transition:transform .3s}

/* LIGHT MODE */
body.light-mode{background:var(--white);color:var(--dark)}
body.light-mode nav{background:rgba(255,255,255,.95);box-shadow:0 2px 10px rgba(0,0,0,.1)}
body.light-mode .logo{color:var(--dark)}
body.light-mode .nav-links a{color:rgba(0,0,0,.7)}
body.light-mode .nav-links a:hover{color:var(--red)}
body.light-mode .bg-dark{background:var(--light);color:var(--dark)}
body.light-mode h2.light{color:var(--dark)}
body.light-mode .section-desc.light{color:#666}
body.light-mode .card{background:var(--white);border-color:#eee}
body.light-mode .card h3{color:var(--red)}
body.light-mode .card p{color:#555}
body.light-mode .why-item p{color:#666}
body.light-mode .why-item h3{color:var(--dark)}
body.light-mode summary{background:var(--white);color:var(--dark);border-color:#ddd}
body.light-mode details{border-color:#ddd}
body.light-mode details p{background:var(--light);color:#555}
body.light-mode .contact-info{color:#555}
body.light-mode .contact-form input,body.light-mode .contact-form select,body.light-mode .contact-form textarea{background:var(--white);color:var(--dark);border-color:#ddd}
body.light-mode footer{background:var(--light);border-top-color:#ddd}
body.light-mode .footer-links a{color:#666}
body.light-mode .footer-brand p{color:#666}
body.light-mode .theme-toggle{background:var(--white);border-color:#ddd;color:var(--dark)}
body.light-mode #hero{background:linear-gradient(135deg,#f0f0f0 0%,#fff5f6 50%,#f8f8f8 100%)}
body.light-mode .hero-text{color:var(--dark)}
body.light-mode .hero-text p{color:#555}
body.light-mode .trust-badges{color:#666}
body.light-mode .btn-outline{border-color:var(--dark);color:var(--dark)}
body.light-mode .btn-outline:hover{background:var(--dark);color:var(--white)}
body.light-mode .nav-links{background:var(--white)}
body.light-mode .back-to-top{background:var(--red);color:var(--white)}

@media(max-width:480px){
.grid-4{grid-template-columns:1fr}
.platform-grid{grid-template-columns:1fr}
.hero-text h1{font-size:1.4rem}
.hero-text p{font-size:.95rem}
h2{font-size:1.3rem}
.price-amount{font-size:2.2rem}
.section{padding:2.5rem 0}
.hero-btns .btn{font-size:.95rem;padding:.9rem}
.trust-badges{flex-direction:column;align-items:center;gap:.5rem}
.article-modal-content h2{font-size:1.3rem}
.footer-links{padding:0}
}

/* Safe area for notched devices */
@supports(padding:env(safe-area-inset-bottom)){
.float-line{bottom:calc(1rem + env(safe-area-inset-bottom))}
.back-to-top{bottom:calc(4.5rem + env(safe-area-inset-bottom))}
footer{padding-bottom:calc(2rem + env(safe-area-inset-bottom))}
}

/* Prefer reduced motion */
@media(prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
.fade-in{transition:none;opacity:1;transform:none}
.horse-hero{animation:none}
.btn,.card,.plat,.price-card,.article-card,.float-line,.back-to-top,.theme-toggle{transition:none}
}

/* Print styles */
@media print{
nav,.float-line,.back-to-top,.theme-toggle,.article-modal{display:none!important}
body{color:#000;background:#fff}
.bg-dark{background:#fff;color:#000}
#hero{min-height:auto;padding:2rem 0}
}
