/* ========= THEME (refreshed, café-friendly) ========= */
:root{
  --paper: #f6f3ee;            /* warm paper */
  --ink: #1f1a15;              /* espresso text */
  --muted: #5b5148;

  --accent: #0f5cff;           /* electric blue accent */
  --accent-2: #d29f71;         /* copper secondary for highlights */

  --glass: rgba(255,255,255,.56);
  --edge: rgba(0,0,0,.08);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.08);
  --shadow-md: 0 10px 28px rgba(0,0,0,.10);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.16);

  --radius: 18px;
  --radius-lg: 24px;

  --nav-h: 84px;
}

/* Base */
*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,video{ max-width:100%; display:block; }

/* Headings balance & no weird hyphenation on mobile */
h1,h2,h3,h4,.t-lede{
  text-wrap: balance;
  hyphens: manual;
}

/* Links */
a{ color: inherit; }

/* ========= DESKTOP TOP NAV (glass) ========= */
.t-nav{
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: color-mix(in oklab, #ffffff 62%, transparent);
  border-bottom: 1px solid var(--edge);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.t-nav__inner{
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.t-brand{
  display:flex; align-items:center; gap:.7rem; text-decoration:none;
}
.t-brand__logo{
  width:60px; height:60px; border-radius:50%; object-fit:contain;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.t-brand__name{
  font-weight:900; letter-spacing:.02em; font-size:1.2rem;
}
.t-links{ display:flex; gap:1rem; }
.t-link{
  text-decoration:none; font-weight:800; letter-spacing:.02em;
  padding:.55rem .85rem; border-radius:999px;
  transition: background .2s, color .2s, transform .12s;
}
.t-link:hover{ background: rgba(15,92,255,.08); color: var(--accent); transform: translateY(-1px); }

.t-nav--scrolled{
  background: color-mix(in oklab, #ffffff 78%, transparent);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

/* Hide desktop nav on small screens (mobile uses bottom tab bar) */
@media (max-width: 900px){
  .t-nav{ display:none; }
}

/* ========= HERO (video intro preserved) ========= */
.t-hero{
  position: relative;
  height: min(84vh, 820px);
  min-height: 520px;
  margin-top: var(--nav-h);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.t-hero__video{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit: cover; z-index:-1;
  filter: saturate(105%) contrast(102%);
}
.t-hero__card{
  /* classic translucent “old design” look */
  background: rgba(242, 228, 213, 0.38);
  border: 1.2px solid rgba(210, 159, 113, 0.22);
  border-radius: 2rem;
  box-shadow: 0 8px 40px rgba(210, 159, 113, 0.10);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  width: min(680px, 92vw);
  margin: 0 auto;
  padding: 1.2rem 1rem 1.1rem;
  text-align: center;
}
.t-hero__title{
  font-size: clamp(1.7rem, 3.6vw + .6rem, 2.7rem);
  font-weight: 900;
  letter-spacing: .01em;
  color: var(--ink);
  text-shadow: 0 2px 18px #f2e4d588, 0 1px 0 #fff;
  margin: 0 0 .6rem 0;
}
.t-hero__subtitle{
  font-size: clamp(1rem, .9rem + .4vw, 1.2rem);
  color: var(--ink);
  opacity: .95;
  text-shadow: 0 1px 8px #f2e4d577;
  margin: 0;
}
.t-hero__cta{
  display:flex; gap:.7rem; justify-content:center; flex-wrap:wrap;
  margin-top: 1rem;
}

/* Buttons */
.t-btn{
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; font-weight:900; letter-spacing:.02em;
  border-radius: 14px; padding:.85rem 1.15rem;
  transition: transform .1s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
}
.t-btn--primary{
  background: var(--accent); color:#fff;
  box-shadow: 0 6px 24px rgba(15,92,255,.28);
}
.t-btn--primary:hover{ transform: translateY(-1px); box-shadow: 0 10px 28px rgba(15,92,255,.34); }
.t-btn--ghost{
  background: rgba(0,0,0,.72); color:#fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.t-btn--ghost:hover{ transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,.26); }

/* Hero quick chips (hidden on mobile) */
.t-quick{
  position:absolute; inset:auto 0 24px 0;
  display:flex; gap:.6rem; justify-content:center;
}
.chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.55rem .9rem; border-radius:999px;
  background: color-mix(in oklab, #ffffff 70%, transparent);
  border: 1px solid var(--edge);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  text-decoration:none; font-weight:800; letter-spacing:.02em;
  transition: background .2s, transform .12s, color .2s;
}
.chip:hover{ transform: translateY(-1px); color: var(--accent); }
@media (max-width: 900px){
  .t-quick{ display:none; }
}

/* ========= SHARED SECTION HEAD ========= */
.t-section-head{
  text-align:center;
  max-width: 900px;
  margin: 0 auto 1.2rem;
  padding: 0 14px;
}
.t-h2{
  font-size: clamp(1.3rem, 1.1rem + 1.8vw, 2rem);
  font-weight: 900;
  letter-spacing: .01em;
  margin: 0 0 .4rem 0;
}
.t-lede{
  color: var(--muted);
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  margin: 0;
  text-wrap: pretty;
}

/* ========= ABOUT ========= */
.t-about{
  padding: 2.6rem 0 1.2rem;
}
.t-about__grid{
  margin: 1.2rem auto 0; padding: 0 14px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; max-width: 1100px;
}
.t-about__card{
  background: color-mix(in oklab, #ffffff 82%, transparent);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 1.1rem .95rem;
  display:flex; flex-direction:column; align-items:flex-start; gap:.4rem;
  min-height: 140px;
}
.t-ico{
  width: 2.2em; height: 2.2em; border-radius: 50%;
  display:grid; place-items:center;
  background: color-mix(in oklab, var(--accent-2) 22%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.t-h3{
  margin:.2rem 0 0 0; font-size: 1.1rem; font-weight: 900;
}
.t-about__card p{ margin:.3rem 0 0 0; color: var(--muted); }

.t-about__tagline{
  text-align:center; margin: 1.1rem auto 0; color: var(--accent-2);
  font-size: 1.05rem;
}

@media (max-width: 1000px){
  .t-about__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .t-about__grid{ grid-template-columns: 1fr; }
}

/* ========= SHOWCASE (Robot Barista) ========= */
.t-showcase{
  padding: 2.2rem 0 1.2rem;
}
.t-cards{
  max-width: 1100px; margin: 1.2rem auto 0; padding: 0 14px;
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.t-card{
  background: color-mix(in oklab, #ffffff 86%, transparent);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .14s ease, box-shadow .2s ease, border-color .2s;
}
.t-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in oklab, var(--accent) 22%, var(--edge));
}
.t-card__img{
  width:100%; height: 220px; object-fit: cover;
  background: #eee;
}
.t-card__body{
  padding: .9rem .95rem 1.05rem;
}
.t-h4{ margin:.2rem 0 .15rem 0; font-size: 1.05rem; font-weight: 900; }
.t-card__body p{ margin:0; color: var(--muted); }

@media (max-width: 900px){
  .t-cards{ grid-template-columns: 1fr; }
  .t-card__img{ height: 200px; }
}

/* ========= MACHINE DEMO ========= */
.t-demo{
  padding: 2.2rem 0 2.4rem;
}
.t-video-grid{
  max-width: 1100px; margin: 1.2rem auto 0; padding: 0 14px;
  display:grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.t-video{
  background: color-mix(in oklab, #ffffff 86%, transparent);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: .7rem;
}
.t-video video{
  width:100%; border-radius: 12px; background:#eee; aspect-ratio: 16/9;
}
.t-video figcaption{
  margin:.6rem .2rem 0; font-weight:800; color: var(--muted);
}
@media (max-width: 900px){
  .t-video-grid{ grid-template-columns: 1fr; }
}

/* ========= FOOTER ========= */
.t-footer{
  background: color-mix(in oklab, #ffffff 76%, transparent);
  border-top: 1px solid var(--edge);
  box-shadow: 0 -8px 24px rgba(0,0,0,.05);
  padding: 1.2rem 0 1.4rem;
}
.t-footer__inner{
  max-width: 1100px; margin: 0 auto; padding: 0 14px;
  text-align:center; color: var(--muted);
}
.t-footer a{ color: var(--accent); text-decoration: none; }
.t-footer a:hover{ text-decoration: underline; }

/* ========= MOBILE BOTTOM TAB BAR ========= */
.t-tabbar{
  display:none;
}
@media (max-width: 900px){
  .t-tabbar{
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
    height: 64px;
    display:flex; justify-content: space-around; align-items: stretch;
    background: color-mix(in oklab, #ffffff 70%, transparent);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-top: 1px solid var(--edge);
    box-shadow: 0 -10px 24px rgba(0,0,0,.06);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .t-tab{
    flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap: 4px; text-decoration:none; color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent;
  }
  .t-tab svg{ width:22px; height:22px; fill: currentColor; opacity:.92; }
  .t-tab.is-active, .t-tab:focus-visible{ color: var(--accent); }

  /* Prevent overlap with tab bar */
  main{ padding-bottom: calc(64px + env(safe-area-inset-bottom) + 12px); }
}

/* ========= ACCESSIBILITY & REDUCED MOTION ========= */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
