/* Temvara Design System v1.0 — temvara.cz */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --brand-navy:#173B6C;--brand-navy-dark:#0F2847;--brand-navy-light:#1E4D8C;
  --brand-teal:#1497A3;--brand-teal-dark:#0E7A84;--brand-teal-light:#17B5C3;
  --brand-slate:#5B6472;--brand-slate-light:#8891A0;
  --product-med:#1497A3;--product-lex:#7C5CBF;
  --surface-white:#FFFFFF;--surface-offwhite:#FAFBFC;--surface-light:#F0F4F8;
  --surface-muted:#E8ECF1;--surface-border:#DDE3EB;
  --text-primary:#1A1F2B;--text-secondary:#5B6472;--text-tertiary:#8891A0;--text-inverse:#FFFFFF;
  --font-heading:'Plus Jakarta Sans',system-ui,sans-serif;
  --font-body:'DM Sans',system-ui,sans-serif;
  --text-xs:clamp(.75rem,.7rem + .25vw,.8125rem);
  --text-sm:clamp(.8125rem,.775rem + .25vw,.875rem);
  --text-base:clamp(.9375rem,.9rem + .2vw,1rem);
  --text-lg:clamp(1.0625rem,1rem + .3vw,1.125rem);
  --text-xl:clamp(1.1875rem,1.1rem + .5vw,1.3125rem);
  --text-2xl:clamp(1.5rem,1.3rem + 1vw,1.875rem);
  --text-3xl:clamp(1.875rem,1.5rem + 1.5vw,2.5rem);
  --text-4xl:clamp(2.25rem,1.8rem + 2vw,3.25rem);
  --text-5xl:clamp(2.75rem,2rem + 3vw,4rem);
  --leading-tight:1.2;--leading-snug:1.35;--leading-normal:1.6;
  --section-y:clamp(64px,8vw,120px);--section-x:clamp(20px,4vw,40px);
  --radius-sm:6px;--radius-md:10px;--radius-lg:14px;--radius-xl:20px;--radius-2xl:28px;--radius-full:9999px;
  --shadow-sm:0 1px 3px rgba(23,59,108,.06),0 1px 2px rgba(23,59,108,.04);
  --shadow-md:0 4px 6px rgba(23,59,108,.05),0 2px 4px rgba(23,59,108,.04);
  --shadow-lg:0 10px 15px rgba(23,59,108,.06),0 4px 6px rgba(23,59,108,.04);
  --shadow-xl:0 20px 25px rgba(23,59,108,.08),0 8px 10px rgba(23,59,108,.04);
  --shadow-glow:0 0 20px rgba(20,151,163,.15);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --nav-height:72px;--container-max:1200px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{font-family:var(--font-body);font-size:var(--text-base);line-height:var(--leading-normal);color:var(--text-secondary);background:var(--surface-white)}
img,svg{display:block;max-width:100%}
a{color:var(--brand-teal);text-decoration:none;transition:color .15s}
a:hover{color:var(--brand-teal-dark)}
::selection{background:rgba(20,151,163,.15);color:var(--brand-navy)}
h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);color:var(--text-primary);line-height:var(--leading-tight);font-weight:700}

/* Navigation */
.nav{position:fixed;top:0;left:0;right:0;height:var(--nav-height);background:rgba(255,255,255,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--surface-border);z-index:100;transition:box-shadow .25s}
.nav--scrolled{box-shadow:var(--shadow-md)}
.nav__inner{max-width:var(--container-max);margin:0 auto;padding:0 var(--section-x);height:100%;display:flex;align-items:center;justify-content:space-between}
.nav__logo{font-family:var(--font-heading);font-weight:800;font-size:1.25rem;color:var(--brand-navy);letter-spacing:-.02em;text-decoration:none}
.nav__logo span{color:var(--brand-teal)}
.nav__links{display:flex;align-items:center;gap:32px;list-style:none}
.nav__link{font-family:var(--font-heading);font-size:var(--text-sm);font-weight:500;color:var(--text-secondary);position:relative}
.nav__link:hover{color:var(--brand-navy)}
.nav__link::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:2px;background:var(--brand-teal);transition:width .25s var(--ease-out)}
.nav__link:hover::after{width:100%}
.nav__link--active{color:var(--brand-navy)}
.nav__link--active::after{width:100%}
.nav__cta{font-family:var(--font-heading);font-weight:600;font-size:var(--text-sm);padding:10px 22px;background:var(--brand-teal);color:var(--text-inverse);border-radius:var(--radius-md);transition:all .25s var(--ease-out)}
.nav__cta:hover{background:var(--brand-teal-dark);color:var(--text-inverse);transform:translateY(-1px);box-shadow:var(--shadow-md)}
.nav__toggle{display:none;background:none;border:none;cursor:pointer;padding:8px}
.nav__toggle svg{width:24px;height:24px;color:var(--brand-navy)}
@media(max-width:768px){
  .nav__links{display:none;flex-direction:column;position:absolute;top:var(--nav-height);left:0;right:0;background:var(--surface-white);padding:24px;border-bottom:1px solid var(--surface-border);box-shadow:var(--shadow-lg);gap:20px}
  .nav__links.open{display:flex}
  .nav__toggle{display:block}
}

/* Container & Section */
.container{max-width:var(--container-max);margin:0 auto;padding:0 var(--section-x)}
.section{padding:var(--section-y) 0}
.section--light{background:var(--surface-light)}
.section--navy{background:var(--brand-navy-dark);color:var(--text-inverse)}
.section--navy h2,.section--navy h3{color:var(--text-inverse)}
.section--navy p{color:rgba(255,255,255,.75)}
.section--navy .kicker{color:var(--brand-teal-light)}

/* Section Header */
.section-header{margin-bottom:clamp(40px,5vw,64px)}
.section-header--center{text-align:center}
.section-header--center p{margin-left:auto;margin-right:auto}
.kicker{font-family:var(--font-heading);font-size:var(--text-sm);font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--brand-teal);margin-bottom:12px}
.section-header h2{font-size:var(--text-3xl);margin-bottom:16px;letter-spacing:-.015em}
.section-header p{font-size:var(--text-lg);color:var(--text-secondary);max-width:56ch;line-height:var(--leading-snug)}

/* Hero */
.hero{padding:calc(var(--nav-height) + 96px) 0 var(--section-y);position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;top:-20%;right:-15%;width:70%;height:140%;background:radial-gradient(ellipse at 60% 40%,rgba(20,151,163,.05) 0%,transparent 55%),radial-gradient(ellipse at 30% 70%,rgba(23,59,108,.03) 0%,transparent 45%);pointer-events:none}
.hero::after{content:'';position:absolute;top:20%;right:5%;width:360px;height:360px;border-radius:50%;border:1px solid rgba(20,151,163,.08);pointer-events:none}
.hero__content{position:relative;z-index:1;max-width:720px}
.hero__kicker{font-family:var(--font-heading);font-size:var(--text-sm);font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--brand-teal);margin-bottom:16px;display:flex;align-items:center;gap:8px}
.hero__kicker::before{content:'';width:24px;height:2px;background:var(--brand-teal);border-radius:1px}
.hero__title{font-size:var(--text-5xl);font-weight:800;letter-spacing:-.03em;line-height:1.08;margin-bottom:24px;color:var(--text-primary)}
.hero__title em{font-style:normal;color:var(--brand-teal)}
.hero__subtitle{font-size:var(--text-xl);line-height:var(--leading-snug);color:var(--text-secondary);max-width:52ch;margin-bottom:40px}
.hero__actions{display:flex;gap:16px;flex-wrap:wrap}
@media(max-width:768px){
  .hero{padding-top:calc(var(--nav-height) + 64px);text-align:left}
  .hero__title{font-size:var(--text-4xl)}
  .hero__actions{flex-direction:column}
  .hero::after{display:none}
}

/* Page top (for sub-pages without hero) */
.page-top{padding-top:calc(var(--nav-height) + 48px)}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-heading);font-weight:600;font-size:var(--text-sm);padding:14px 28px;border-radius:var(--radius-lg);border:2px solid transparent;cursor:pointer;transition:all .25s var(--ease-out);text-decoration:none;white-space:nowrap}
.btn--primary{background:var(--brand-teal);color:var(--text-inverse);border-color:var(--brand-teal)}
.btn--primary:hover{background:var(--brand-teal-dark);border-color:var(--brand-teal-dark);color:var(--text-inverse);transform:translateY(-1px);box-shadow:var(--shadow-lg),var(--shadow-glow)}
.btn--secondary{background:transparent;color:var(--brand-navy);border-color:var(--surface-border)}
.btn--secondary:hover{border-color:var(--brand-navy);transform:translateY(-1px)}
.btn--white{background:var(--surface-white);color:var(--brand-navy);border-color:var(--surface-white)}
.btn--white:hover{background:var(--surface-offwhite);color:var(--brand-navy);transform:translateY(-1px);box-shadow:var(--shadow-lg)}
.btn--lg{padding:18px 36px;font-size:var(--text-base)}
.btn--arrow::after{content:'\2192';transition:transform .2s}
.btn--arrow:hover::after{transform:translateX(3px)}

/* Grid */
.grid{display:grid;gap:24px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:768px){.grid-2,.grid-3{grid-template-columns:1fr}}
@media(min-width:769px) and (max-width:1024px){.grid-3{grid-template-columns:repeat(2,1fr)}}

/* Cards */
.card{background:var(--surface-white);border:1px solid var(--surface-border);border-radius:var(--radius-xl);padding:32px;transition:all .25s var(--ease-out)}
.card:hover{border-color:var(--surface-muted);box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.card__icon{width:52px;height:52px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;margin-bottom:20px;font-size:1.6rem}
.card__title{font-family:var(--font-heading);font-size:var(--text-lg);font-weight:700;color:var(--text-primary);margin-bottom:8px}
.card__text{font-size:var(--text-sm);line-height:var(--leading-normal);color:var(--text-secondary)}

/* Product Cards */
.product-card{background:var(--surface-white);border:1.5px solid var(--surface-border);border-radius:var(--radius-2xl);padding:40px;position:relative;overflow:hidden;transition:all .3s var(--ease-out)}
.product-card::before{content:'';position:absolute;top:0;left:0;right:0;height:4px}
.product-card--med::before{background:var(--product-med)}
.product-card--lex::before{background:var(--product-lex)}
.product-card--future::before{background:var(--surface-muted)}
.product-card:hover{box-shadow:var(--shadow-xl);transform:translateY(-3px)}
.product-card--future{opacity:.65}
.product-card--future:hover{opacity:.8}
.product-card__badge{display:inline-block;font-family:var(--font-heading);font-size:var(--text-xs);font-weight:600;text-transform:uppercase;letter-spacing:.06em;padding:4px 14px;border-radius:var(--radius-full);margin-bottom:16px}
.product-card--med .product-card__badge{background:rgba(20,151,163,.1);color:var(--brand-teal)}
.product-card--lex .product-card__badge{background:rgba(124,92,191,.1);color:var(--product-lex)}
.product-card--future .product-card__badge{background:var(--surface-light);color:var(--text-tertiary)}
.product-card__name{font-family:var(--font-heading);font-size:var(--text-2xl);font-weight:800;color:var(--text-primary);margin-bottom:4px}
.product-card__vertical{font-size:var(--text-sm);font-weight:500;margin-bottom:16px}
.product-card--med .product-card__vertical{color:var(--product-med)}
.product-card--lex .product-card__vertical{color:var(--product-lex)}
.product-card--future .product-card__vertical{color:var(--text-tertiary)}
.product-card__desc{font-size:var(--text-base);line-height:var(--leading-normal);margin-bottom:24px}
.product-card__features{list-style:none;margin-bottom:24px;display:flex;flex-direction:column;gap:8px}
.product-card__features li{font-size:var(--text-sm);display:flex;align-items:center;gap:10px;color:var(--text-secondary)}
.product-card__features li::before{content:'\2713';font-weight:700;flex-shrink:0}
.product-card--med .product-card__features li::before{color:var(--product-med)}
.product-card--lex .product-card__features li::before{color:var(--product-lex)}
.product-card--future .product-card__features li::before{color:var(--text-tertiary)}

/* Stats */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:32px}
@media(max-width:768px){.stats{grid-template-columns:repeat(2,1fr)}}
.stat{text-align:center}
.stat__number{font-family:var(--font-heading);font-size:var(--text-4xl);font-weight:800;line-height:1;margin-bottom:6px}
.stat__label{font-size:var(--text-sm);font-weight:500}

/* Principles */
.principle{display:flex;gap:20px;align-items:flex-start;padding:24px 0;border-bottom:1px solid var(--surface-border)}
.principle:last-child{border-bottom:none}
.principle__number{font-family:var(--font-heading);font-weight:800;font-size:var(--text-2xl);color:var(--brand-teal);min-width:48px;line-height:1}
.principle__title{font-family:var(--font-heading);font-weight:700;font-size:var(--text-lg);color:var(--text-primary);margin-bottom:4px}
.principle__text{font-size:var(--text-base);line-height:var(--leading-normal)}

/* CTA Section */
.cta-section{text-align:center;padding:clamp(64px,8vw,100px) 0}
.cta-section h2{font-size:var(--text-3xl);margin-bottom:16px}
.cta-section p{font-size:var(--text-lg);margin-bottom:36px;max-width:48ch;margin-left:auto;margin-right:auto}
.cta-section .btn-group{display:flex;justify-content:center;gap:16px;flex-wrap:wrap}

/* Company Info Box */
.info-box{background:var(--surface-light);border-radius:var(--radius-2xl);padding:40px}
.info-box h3{font-size:var(--text-xl);margin-bottom:24px}
.info-item{margin-bottom:16px}
.info-item:last-child{margin-bottom:0}
.info-label{font-size:var(--text-xs);font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-tertiary);margin-bottom:4px}
.info-value{font-size:var(--text-base);color:var(--text-primary)}
.info-value--sm{font-size:var(--text-sm);color:var(--text-secondary)}

/* Pipeline boxes */
.pipeline{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;text-align:center}
@media(max-width:768px){.pipeline{grid-template-columns:repeat(2,1fr)}}
.pipeline__step{background:rgba(255,255,255,.06);border-radius:var(--radius-lg);padding:28px 16px;border:1px solid rgba(255,255,255,.08)}
.pipeline__icon{font-size:2rem;margin-bottom:12px}
.pipeline__title{font-family:var(--font-heading);font-weight:700;font-size:var(--text-base);margin-bottom:6px;color:var(--text-inverse)}
.pipeline__text{font-size:var(--text-sm);color:rgba(255,255,255,.55)}

/* Contact Form */
.form-group{margin-bottom:20px}
.form-label{display:block;font-family:var(--font-heading);font-size:var(--text-sm);font-weight:600;color:var(--text-primary);margin-bottom:8px}
.form-input,.form-select,.form-textarea{width:100%;padding:12px 16px;font-family:var(--font-body);font-size:var(--text-base);color:var(--text-primary);background:var(--surface-white);border:1.5px solid var(--surface-border);border-radius:var(--radius-md);transition:border-color .15s,box-shadow .15s;outline:none}
.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:var(--brand-teal);box-shadow:0 0 0 3px rgba(20,151,163,.12)}
.form-textarea{min-height:120px;resize:vertical}

/* Footer */
.footer{background:var(--brand-navy-dark);color:rgba(255,255,255,.7);padding:64px 0 32px}
.footer__grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:40px;margin-bottom:48px}
@media(max-width:768px){.footer__grid{grid-template-columns:1fr;gap:32px}}
.footer__brand{font-family:var(--font-heading);font-weight:800;font-size:1.25rem;color:var(--text-inverse);margin-bottom:16px}
.footer__brand span{color:var(--brand-teal-light)}
.footer__desc{font-size:var(--text-sm);line-height:var(--leading-normal);max-width:32ch}
.footer__heading{font-family:var(--font-heading);font-size:var(--text-xs);font-weight:600;color:var(--text-inverse);text-transform:uppercase;letter-spacing:.08em;margin-bottom:16px}
.footer__links{list-style:none;display:flex;flex-direction:column;gap:10px}
.footer__link{font-size:var(--text-sm);color:rgba(255,255,255,.55);transition:color .15s}
.footer__link:hover{color:var(--text-inverse)}
.footer__bottom{border-top:1px solid rgba(255,255,255,.08);padding-top:24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.footer__copy{font-size:var(--text-xs);color:rgba(255,255,255,.35)}
.footer__legal{display:flex;gap:24px}
.footer__legal a{font-size:var(--text-xs);color:rgba(255,255,255,.35)}
.footer__legal a:hover{color:rgba(255,255,255,.6)}

/* Animations */
@keyframes fadeInUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
.animate{opacity:0;transform:translateY(24px);transition:all .6s var(--ease-out)}
.animate.visible{opacity:1;transform:translateY(0)}
