@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Sora:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --void:      #0a0b0e;
  --surface:   rgba(255,255,255,0.045);
  --surface-2: rgba(255,255,255,0.08);
  --border:    rgba(255,255,255,0.11);
  --border-hi: rgba(255,255,255,0.22);
  --paper:     #f4f5f7;
  --muted:     #9198a6;
  --red:       #e0433c;
  --red-dim:   #7a2622;
  --indigo:    #5b6cff;
  --amber:     #ffb648;
  --max-w: 1160px;
  --ease: cubic-bezier(.22,.9,.28,1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: 'Inter', "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

h1, h2 { font-family: 'Space Grotesk', 'Inter', sans-serif; }

/* ================= background: gradient mesh + film grain ================= */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--void);
  overflow: hidden;
}
.bg-scene .blob-a {
  position: absolute;
  top: -320px;
  left: -120px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(224,67,60,0.38) 0%, rgba(224,67,60,0.10) 42%, transparent 68%);
  filter: blur(10px);
}
.bg-scene .blob-b {
  position: absolute;
  top: -180px;
  right: -260px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(91,108,255,0.24) 0%, rgba(91,108,255,0.06) 45%, transparent 70%);
  filter: blur(10px);
}
.bg-scene .grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.bg-scene .fade-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--void));
}

/* ================= layout shell ================= */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 32px 110px;
}

/* ================= hero ================= */
.hero { text-align: center; padding: 10px 0 68px; }
.hero-logo {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 0 28px rgba(224,67,60,0.38));
  margin-bottom: 32px;
}
.hero h1 {
  margin: 0 auto 26px;
  max-width: 640px;
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  font-size: clamp(27px, 4.2vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--paper);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.03);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.hero-cta:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,182,72,0.5);
  transform: translateY(-2px);
}
.hero-cta svg { width: 16px; height: 16px; color: var(--amber); }

/* ================= section header ================= */
.section { margin-bottom: 76px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 32px;
}
.section-head h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.section-head .rule {
  flex: 1 1 auto;
  min-width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-hi), transparent);
}

/* ================= gradient-border glass card ================= */
.glass {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.glass::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, var(--glow-a, transparent), transparent 40%, var(--glow-b, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.glass:hover::before { opacity: 1; }
.glass:hover {
  transform: translateY(-5px);
  border-color: var(--border-hi);
  background: var(--surface-2);
  box-shadow: 0 22px 44px -26px rgba(0,0,0,0.7);
}

/* ================= icon grid (Files) ================= */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: 16px;
}
.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--paper);
  padding: 32px 14px 26px;
}
.icon-card .tile {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tile-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--tile-border, rgba(255,255,255,0.10));
  transition: transform 0.3s var(--ease);
}
.icon-card:hover .tile { transform: scale(1.07); }
.tile svg { width: 30px; height: 30px; color: var(--tile-icon, var(--muted)); transition: color 0.3s var(--ease); }
.icon-card:hover .tile svg { color: var(--tile-icon-hover, var(--paper)); }

.icon-card[data-tile="windows"]    { --tile-bg: linear-gradient(150deg, rgba(96,165,250,0.16), rgba(96,165,250,0.05));  --tile-border: rgba(96,165,250,0.28); --tile-icon: #a3c6fb; --tile-icon-hover:#cfe1ff; --glow-a: rgba(96,165,250,0.55); --glow-b: rgba(96,165,250,0.05); }
.icon-card[data-tile="linux"]      { --tile-bg: linear-gradient(150deg, rgba(224,67,60,0.16), rgba(224,67,60,0.05));   --tile-border: rgba(224,67,60,0.3);  --tile-icon: #f2a29d; --tile-icon-hover:#ffc5c1; --glow-a: rgba(224,67,60,0.6);  --glow-b: rgba(224,67,60,0.05); }
.icon-card[data-tile="service"]    { --tile-bg: linear-gradient(150deg, rgba(255,182,72,0.16), rgba(255,182,72,0.05)); --tile-border: rgba(255,182,72,0.3); --tile-icon: #fad19b; --tile-icon-hover:#ffe3b8; --glow-a: rgba(255,182,72,0.6); --glow-b: rgba(255,182,72,0.05); }
.icon-card[data-tile="test"]       { --tile-bg: linear-gradient(150deg, rgba(74,222,128,0.16), rgba(74,222,128,0.05)); --tile-border: rgba(74,222,128,0.28); --tile-icon: #a6ecc0; --tile-icon-hover:#c9f5d9; --glow-a: rgba(74,222,128,0.55); --glow-b: rgba(74,222,128,0.05); }
.icon-card[data-tile="fileserver"] { --tile-bg: linear-gradient(150deg, rgba(167,139,250,0.16), rgba(167,139,250,0.05)); --tile-border: rgba(167,139,250,0.28); --tile-icon: #d0c1fb; --tile-icon-hover:#e4d9fd; --glow-a: rgba(167,139,250,0.55); --glow-b: rgba(167,139,250,0.05); }

.icon-card span.label { font-weight: 600; font-size: 14.5px; text-align: center; }

/* ================= webs ================= */
.web-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.web-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--paper);
  padding: 19px 20px;
  --glow-a: rgba(224,67,60,0.4);
  --glow-b: rgba(91,108,255,0.3);
}
.web-card .web-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
}
.web-mark.jira { background: rgba(109,167,255,0.18); color: #a3c6fb; }
.web-mark.confluence { background: rgba(77,155,216,0.18); color: #94d0f0; }
.web-mark.trello { background: rgba(111,181,232,0.18); color: #98d2f1; }
.web-card span.web-label { font-weight: 600; font-size: 15px; }
.web-card .go { margin-left: auto; color: var(--muted); font-size: 14px; }

/* ================= others / teamviewer ================= */
.tv-card {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  padding: 21px 24px;
  text-decoration: none;
  color: var(--paper);
  --glow-a: rgba(255,182,72,0.55);
  --glow-b: rgba(255,182,72,0.05);
}
.tv-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(255,182,72,0.18), rgba(255,182,72,0.05));
  border: 1px solid rgba(255,182,72,0.28);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tv-icon svg { width: 23px; height: 23px; color: var(--amber); }
.tv-text { font-weight: 700; font-size: 17px; letter-spacing: 0.1px; flex: 1; font-family: 'Space Grotesk', sans-serif; }
.tv-caption { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ================= footer ================= */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 34px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

/* ================= responsive ================= */
@media (max-width: 640px) {
  .wrap { padding: 46px 18px 84px; }
  .hero-logo { height: 56px; }
  .section-head h2 { font-size: 20px; }
  .tv-card { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .glass, .icon-card .tile { transition: none; }
}
